Sha256: 552102cc02286fed2581073af1a308a787f854238bb4871ed13e2dae432803a0
Contents?: true
Size: 573 Bytes
Versions: 5
Compression:
Stored size: 573 Bytes
Contents
module Access class Member def self.process_batch(chunk) chunk.map { |member| new(member) } end def initialize(values) self.class.class_eval {attr_reader *values.keys } values.each do |attribute_name, attribute_value| self.instance_variable_set("@#{attribute_name}", attribute_value) end end def self.show(member_key, options = {}) Access::Api.new.member_show member_key, options end def self.update(member_key, options = {}) Access::Api.new.member_update member_key, options end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
access-2.0.43 | lib/access/member.rb |
access-2.0.42 | lib/access/member.rb |
access-2.0.41 | lib/access/member.rb |
access-2.0.40 | lib/access/member.rb |
access-2.0.39 | lib/access/member.rb |