Class: Access::User

Inherits:
Object
  • Object
show all
Includes:
MuchMeta
Defined in:
lib/access/user.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MuchMeta

#set_up_methods, #set_values

Constructor Details

#initialize(values) ⇒ User

Returns a new instance of User.



9
10
11
12
13
# File 'lib/access/user.rb', line 9

def initialize(values)
  @used_fields = []
  set_up_methods(values)
  set_values(values)
end

Class Method Details

.authenticate(options = {}) ⇒ Object



23
24
25
# File 'lib/access/user.rb', line 23

def self.authenticate(options = {})
  Access::Api.new.user_authentication options
end

.authenticate_by_cvt(options = {}) ⇒ Object



27
28
29
# File 'lib/access/user.rb', line 27

def self.authenticate_by_cvt(options = {})
  Access::Api.new.user_authentication_by_cvt options
end

.authenticate_by_member_key(options = {}) ⇒ Object



31
32
33
# File 'lib/access/user.rb', line 31

def self.authenticate_by_member_key(options = {})
  Access::Api.new.user_authentication_by_member_key options
end

.external_authenticate(options = {}) ⇒ Object



35
36
37
# File 'lib/access/user.rb', line 35

def self.external_authenticate(options = {})
  Access::Api.new.user_external_authentication options
end

.external_authenticate_by_token(options = {}) ⇒ Object



39
40
41
# File 'lib/access/user.rb', line 39

def self.external_authenticate_by_token(options = {})
  Access::Api.new.user_external_authentication_by_token options
end

.process_batch(chunk) ⇒ Object



5
6
7
# File 'lib/access/user.rb', line 5

def self.process_batch(chunk)
  chunk.map { |user| new(user) }
end

.register(options = {}) ⇒ Object



15
16
17
# File 'lib/access/user.rb', line 15

def self.register(options = {})
  Access::Api.new.user_registration options
end

.update(options = {}) ⇒ Object



19
20
21
# File 'lib/access/user.rb', line 19

def self.update(options = {})
  Access::Api.new.user_update options
end