Sha256: a54ef3d12fe89679958d9902b1212372b85a812575752b649d17c379304b7ecd
Contents?: true
Size: 739 Bytes
Versions: 9
Compression:
Stored size: 739 Bytes
Contents
module Access class User def self.process_batch(chunk) chunk.map { |user| new(user) } 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.user_registration options end def self.update(options = {}) Access::Api.new.user_update options end def self.authenticate(options = {}) Access::Api.new.user_authentication options end def self.authenticate_by_cvt(options = {}) Access::Api.new.user_authentication_by_cvt options end end end
Version data entries
9 entries across 9 versions & 1 rubygems