Class: MekariSso::UserUpdate
- Inherits:
-
UserRegister
- Object
- Config
- UserRegister
- MekariSso::UserUpdate
- Defined in:
- lib/params/user_update.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes inherited from Config
#accept_language, #base_url, #client_id, #client_secret
Instance Method Summary collapse
- #available_keys ⇒ Object
-
#initialize(options = nil) ⇒ UserUpdate
constructor
A new instance of UserUpdate.
- #validate_required! ⇒ Object
Methods inherited from Config
Constructor Details
#initialize(options = nil) ⇒ UserUpdate
Returns a new instance of UserUpdate.
10 11 12 |
# File 'lib/params/user_update.rb', line 10 def initialize( = nil) apply() if end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
8 9 10 |
# File 'lib/params/user_update.rb', line 8 def access_token @access_token end |
#email ⇒ Object
Returns the value of attribute email.
8 9 10 |
# File 'lib/params/user_update.rb', line 8 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
8 9 10 |
# File 'lib/params/user_update.rb', line 8 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
8 9 10 |
# File 'lib/params/user_update.rb', line 8 def last_name @last_name end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/params/user_update.rb', line 8 def password @password end |
#phone ⇒ Object
Returns the value of attribute phone.
8 9 10 |
# File 'lib/params/user_update.rb', line 8 def phone @phone end |
#user_id ⇒ Object
Returns the value of attribute user_id.
8 9 10 |
# File 'lib/params/user_update.rb', line 8 def user_id @user_id end |
Instance Method Details
#available_keys ⇒ Object
14 15 16 |
# File 'lib/params/user_update.rb', line 14 def available_keys super + %i[user_id] end |
#validate_required! ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/params/user_update.rb', line 18 def validate_required! unless @user_id.present? raise ArgumentError, "Params user_id is required options" end unless @access_token.present? raise ArgumentError, "Params access_token is required options" end end |