Class: Access::User
Class Method Summary collapse
- .authenticate(options = {}) ⇒ Object
- .authenticate_by_cvt(options = {}) ⇒ Object
- .authenticate_by_member_key(options = {}) ⇒ Object
- .external_authenticate(options = {}) ⇒ Object
- .external_authenticate_by_token(options = {}) ⇒ Object
- .process_batch(chunk) ⇒ Object
- .register(options = {}) ⇒ Object
- .update(options = {}) ⇒ Object
Instance Method Summary collapse
-
#initialize(values) ⇒ User
constructor
A new instance of User.
Methods included from MuchMeta
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( = {}) Access::Api.new.user_authentication end |
.authenticate_by_cvt(options = {}) ⇒ Object
27 28 29 |
# File 'lib/access/user.rb', line 27 def self.authenticate_by_cvt( = {}) Access::Api.new.user_authentication_by_cvt end |
.authenticate_by_member_key(options = {}) ⇒ Object
31 32 33 |
# File 'lib/access/user.rb', line 31 def self.authenticate_by_member_key( = {}) Access::Api.new.user_authentication_by_member_key end |
.external_authenticate(options = {}) ⇒ Object
35 36 37 |
# File 'lib/access/user.rb', line 35 def self.external_authenticate( = {}) Access::Api.new.user_external_authentication end |
.external_authenticate_by_token(options = {}) ⇒ Object
39 40 41 |
# File 'lib/access/user.rb', line 39 def self.external_authenticate_by_token( = {}) Access::Api.new.user_external_authentication_by_token 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( = {}) Access::Api.new.user_registration end |
.update(options = {}) ⇒ Object
19 20 21 |
# File 'lib/access/user.rb', line 19 def self.update( = {}) Access::Api.new.user_update end |