Class: Afterburn::Member
Instance Attribute Summary
#id
Class Method Summary
collapse
Instance Method Summary
collapse
#fetch, fetch, find, inherited, #initialize, initialize_from_trello_object, #load, #redis_key, #trello_object, #trello_object=, wrap, wrapper_class, wrapper_name, #wrapper_name
Methods included from Helpers
#constantize, #redis, #titleize
Class Method Details
.add_member(member) ⇒ Object
31
32
33
|
# File 'lib/afterburn/member.rb', line 31
def self.add_member(member)
member_id_set << member.id
end
|
.all ⇒ Object
23
24
25
|
# File 'lib/afterburn/member.rb', line 23
def self.all
ids.map { |id| Member.find(id) }
end
|
.clear ⇒ Object
35
36
37
|
# File 'lib/afterburn/member.rb', line 35
def self.clear
member_id_set.clear
end
|
.first ⇒ Object
27
28
29
|
# File 'lib/afterburn/member.rb', line 27
def self.first
Member.find(ids.first)
end
|
.ids ⇒ Object
19
20
21
|
# File 'lib/afterburn/member.rb', line 19
def self.ids
member_id_set.members
end
|
Instance Method Details
#boards ⇒ Object
39
40
41
|
# File 'lib/afterburn/member.rb', line 39
def boards
trello_member.boards.map { |trello_board| Board.initialize_from_trello_object(trello_board) }
end
|
#name ⇒ Object
43
44
45
|
# File 'lib/afterburn/member.rb', line 43
def name
trello_member.username
end
|