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 def self.authenticate_by_cvt(options = {}) Access::Api.new.member_authentication_by_cvt options 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