Sha256: a692d91c2267bbe84c32cbd889236310e7b38cb1128794b517e971efde9a1605
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 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(member_key, options = {}) Access::Api.new.member_show member_key, options end def self.update_member(member_key, options = {}) Access::Api.new.member_update member_key, options end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
access-2.0.38 | lib/access/member.rb |
access-2.0.37 | lib/access/member.rb |