Module: Tacokit::Client::Members
- Included in:
- Tacokit::Client
- Defined in:
- lib/tacokit/client/members.rb
Overview
Methods for the Members API
Instance Method Summary (collapse)
- - (Object) actions(username = "me", options = {}) (also: #member_actions)
- - (Object) boards(username = "me", options = {})
- - (Object) cards(username = "me", options = {})
- - (Object) member(username = "me", options = nil)
- - (Object) notifications(username = "me", options = {})
- - (Object) organizations(username = "me", options = {})
- - (Object) tokens(username = "me", options = {})
-
- (Object) update_member(username = "me", options = {})
Update a member.
Instance Method Details
- (Tacokit::Collection<Action>) actions(username = "me", options = nil) - (Tacokit::Collection) actions(options = nil) Also known as: member_actions
46 47 48 49 |
# File 'lib/tacokit/client/members.rb', line 46 def actions(username = "me", = {}) username, = extract_member_args(username, ) paginated_get member_path(username, "actions"), end |
- (Tacokit::Collection<Board>) boards(username = "me", options = {}) - (Tacokit::Resource) boards(options = {})
68 69 70 71 |
# File 'lib/tacokit/client/members.rb', line 68 def boards(username = "me", = {}) username, = extract_member_args(username, ) get member_path(username, "boards"), end |
- (Tacokit::Collection<Card>) cards(username = "me", options = {}) - (Tacokit::Collection<Card>) cards(options = {})
89 90 91 92 |
# File 'lib/tacokit/client/members.rb', line 89 def cards(username = "me", = {}) username, = extract_member_args(username, ) get member_path(username, "cards"), end |
- (Tacokit::Resource<Member>) member(username = "me", options = nil) - (Tacokit::Resource<Member>) member(options)
25 26 27 28 |
# File 'lib/tacokit/client/members.rb', line 25 def member(username = "me", = nil) username, = extract_member_args(username, ) get member_path(username), end |
- (Tacokit::Collection<Notification>) notifications(username = "me", options = {}) - (Tacokit::Collection<Notification>) notifications(options = {})
110 111 112 113 |
# File 'lib/tacokit/client/members.rb', line 110 def notifications(username = "me", = {}) username, = extract_member_args(username, ) paginated_get member_path(username, "notifications"), end |
- (Tacokit::Collection<Organization>) organizations(username = "me", options = {}) - (Tacokit::Collection<Organization>) organizations(options = {})
131 132 133 134 |
# File 'lib/tacokit/client/members.rb', line 131 def organizations(username = "me", = {}) username, = extract_member_args(username, ) get member_path(username, "organizations"), end |
- (Tacokit::Collection<Token>) tokens(username = "me", options = {}) - (Tacokit::Collection<Token>) tokens(options = {})
152 153 154 155 |
# File 'lib/tacokit/client/members.rb', line 152 def tokens(username = "me", = {}) username, = extract_member_args(username, ) get member_path(username, "tokens"), end |
- (Object) update_member(username = "me", options = {})
Update a member
163 164 165 166 |
# File 'lib/tacokit/client/members.rb', line 163 def update_member(username = "me", = {}) username, = extract_member_args(username, ) put member_path(username), end |