Class: MekariSso::UserExistence
- Defined in:
- lib/params/user_existence.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Config
#accept_language, #base_url, #client_id, #client_secret
Instance Method Summary collapse
- #available_keys ⇒ Object
-
#initialize(options = nil) ⇒ UserExistence
constructor
A new instance of UserExistence.
- #validate_required! ⇒ Object
Methods inherited from Config
Constructor Details
#initialize(options = nil) ⇒ UserExistence
Returns a new instance of UserExistence.
9 10 11 |
# File 'lib/params/user_existence.rb', line 9 def initialize( = nil) apply() if end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
7 8 9 |
# File 'lib/params/user_existence.rb', line 7 def access_token @access_token end |
#key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/params/user_existence.rb', line 7 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
7 8 9 |
# File 'lib/params/user_existence.rb', line 7 def value @value end |
Instance Method Details
#available_keys ⇒ Object
13 14 15 |
# File 'lib/params/user_existence.rb', line 13 def available_keys %i[key value access_token] end |
#validate_required! ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/params/user_existence.rb', line 17 def validate_required! unless @key.present? raise ArgumentError, "Params key is required options" end unless @value.present? raise ArgumentError, "Params value is required options" end unless @access_token.present? raise ArgumentError, "Params access_token is required options" end end |