Sha256: 3fcbd06e91d55436be13b35678db40683970a0788e589da48961da5b72b985ea
Contents?: true
Size: 551 Bytes
Versions: 5
Compression:
Stored size: 551 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.register(options = {}) Access::Api.new.member_registration options end def self.authenticate(options = {}) Access::Api.new.member_authentication options end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
access-2.0.33 | lib/access/member.rb |
access-2.0.32 | lib/access/member.rb |
access-2.0.31 | lib/access/member.rb |
access-2.0.30 | lib/access/member.rb |
access-2.0.29 | lib/access/member.rb |