Class: Ayadn::PreferencesScroll
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#spinner ⇒ Object
Returns the value of attribute spinner.
-
#timer ⇒ Object
Returns the value of attribute timer.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesScroll
constructor
A new instance of PreferencesScroll.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesScroll
Returns a new instance of PreferencesScroll.
184 185 186 187 188 |
# File 'lib/ayadn/preferences_object.rb', line 184 def initialize hash @spinner = hash[:spinner] @timer = hash[:timer] @date = hash[:date] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
183 184 185 |
# File 'lib/ayadn/preferences_object.rb', line 183 def date @date end |
#spinner ⇒ Object
Returns the value of attribute spinner.
183 184 185 |
# File 'lib/ayadn/preferences_object.rb', line 183 def spinner @spinner end |
#timer ⇒ Object
Returns the value of attribute timer.
183 184 185 |
# File 'lib/ayadn/preferences_object.rb', line 183 def timer @timer end |
Instance Method Details
#to_h ⇒ Object
189 190 191 192 193 194 195 |
# File 'lib/ayadn/preferences_object.rb', line 189 def to_h { spinner: @spinner, timer: @timer, date: @date } end |