Class: HolidayList::Configuration
- Inherits:
-
Object
- Object
- HolidayList::Configuration
- Defined in:
- lib/holiday_list/configuration.rb
Overview
Configuration: Used to persist access token configurations
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/holiday_list/configuration.rb', line 5 def id @id end |
#key ⇒ Object
Returns the value of attribute key.
5 6 7 |
# File 'lib/holiday_list/configuration.rb', line 5 def key @key end |
Instance Method Details
#configured? ⇒ Boolean
7 8 9 |
# File 'lib/holiday_list/configuration.rb', line 7 def configured? !id.nil? && !key.nil? end |