Sha256: 0eff50ab879585008a4c0c38a78509ed928a6b8921d87bae0f74d74d42b3a89d
Contents?: true
Size: 550 Bytes
Versions: 6
Compression:
Stored size: 550 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
6 entries across 6 versions & 1 rubygems