Sha256: 6092ea433592642f1fe45779ff74e7c719c0d59b101278c81f8d7fe63e52bbe3
Contents?: true
Size: 866 Bytes
Versions: 4
Compression:
Stored size: 866 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 def self.authenticate_by_member_key(options = {}) Access::Api.new.user_authentication_by_member_key options end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
access-2.0.50 | lib/access/user.rb |
access-2.0.49 | lib/access/user.rb |
access-2.0.48 | lib/access/user.rb |
access-2.0.47 | lib/access/user.rb |