Class: Access::Member
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from MuchMeta
#set_up_methods, #set_values
Constructor Details
#initialize(values) ⇒ Member
Returns a new instance of Member.
9
10
11
12
13
14
15
16
17
|
# File 'lib/access/member.rb', line 9
def initialize(values)
@used_fields = []
set_up_methods(values)
set_values(values)
@user = Access::User.new(@user) if @user
@member = Access::Member.new(@member.tap {|m| m.delete(:user) }) if @member
@program = Access::Program.new(@program) if @program
@organization = Access::Organization.new(@organization) if @organization
end
|
Class Method Details
.process_batch(chunk) ⇒ Object
5
6
7
|
# File 'lib/access/member.rb', line 5
def self.process_batch(chunk)
chunk.map { |member| new(member) }
end
|
.show(member_key, options = {}) ⇒ Object
19
20
21
|
# File 'lib/access/member.rb', line 19
def self.show(member_key, options = {})
Access::Api.new.member_show member_key, options
end
|
.update(member_key, options = {}) ⇒ Object
23
24
25
|
# File 'lib/access/member.rb', line 23
def self.update(member_key, options = {})
Access::Api.new.member_update member_key, options
end
|