Module: Tacokit::Client::Members

Included in:
Tacokit::Client
Defined in:
lib/tacokit/client/members.rb

Instance Method Summary collapse

Instance Method Details

#actions(username = "me", options = {}) ⇒ Object Also known as: member_actions

Retrieve a member's actions


14
15
16
17
18
19
20
# File 'lib/tacokit/client/members.rb', line 14

def actions(username = "me", options = {})
  if username.is_a?(Hash)
    username = "me"
    options = username
  end
  paginated_get member_path(username, "actions"), options
end

#boards(username = "me", options = {}) ⇒ Object

Retrieve a member's boards


26
27
28
# File 'lib/tacokit/client/members.rb', line 26

def boards(username = "me", options = {})
  get member_path(username, "boards"), options
end

#cards(username = "me", options = {}) ⇒ Object

Retrieve a member's cards


33
34
35
# File 'lib/tacokit/client/members.rb', line 33

def cards(username = "me", options = {})
  get member_path(username, "cards"), options
end

#member(username = "me", options = nil) ⇒ Object

Retrieve a Trello member


7
8
9
# File 'lib/tacokit/client/members.rb', line 7

def member(username = "me", options = nil)
  get member_path(username), options
end

#notifications(username = "me", options = {}) ⇒ Object

Retrieve a member's notifications


40
41
42
# File 'lib/tacokit/client/members.rb', line 40

def notifications(username = "me", options = {})
  paginated_get member_path(username, "notifications"), options
end

#organizations(username = "me", options = {}) ⇒ Object

Retrieve a member's organizations


47
48
49
# File 'lib/tacokit/client/members.rb', line 47

def organizations(username = "me", options = {})
  get member_path(username, "organizations"), options
end

#tokens(username = "me", options = {}) ⇒ Object

Retrieve a member's tokens


54
55
56
# File 'lib/tacokit/client/members.rb', line 54

def tokens(username = "me", options = {})
  get member_path(username, "tokens"), options
end

#update_member(username, options = {}) ⇒ Object

Update a member


61
62
63
# File 'lib/tacokit/client/members.rb', line 61

def update_member(username, options = {})
  put member_path(username), options
end