Class: MekariSso::List
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#page ⇒ Object
Returns the value of attribute page.
Attributes inherited from Config
#accept_language, #base_url, #client_id, #client_secret
Instance Method Summary collapse
- #available_keys ⇒ Object
-
#initialize(options = nil) ⇒ List
constructor
A new instance of List.
- #validate_required! ⇒ Object
Methods inherited from Config
Constructor Details
#initialize(options = nil) ⇒ List
Returns a new instance of List.
9 10 11 |
# File 'lib/params/list.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/list.rb', line 7 def access_token @access_token end |
#limit ⇒ Object
Returns the value of attribute limit.
7 8 9 |
# File 'lib/params/list.rb', line 7 def limit @limit end |
#page ⇒ Object
Returns the value of attribute page.
7 8 9 |
# File 'lib/params/list.rb', line 7 def page @page end |
Instance Method Details
#available_keys ⇒ Object
13 14 15 |
# File 'lib/params/list.rb', line 13 def available_keys %i[access_token page limit] end |
#validate_required! ⇒ Object
17 18 19 20 21 |
# File 'lib/params/list.rb', line 17 def validate_required! unless @access_token.present? raise ArgumentError, "Params access_token is required options" end end |