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