Class: Ayadn::PreferencesScroll

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/preferences_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject

Returns the value of attribute date.



183
184
185
# File 'lib/ayadn/preferences_object.rb', line 183

def date
  @date
end

#spinnerObject

Returns the value of attribute spinner.



183
184
185
# File 'lib/ayadn/preferences_object.rb', line 183

def spinner
  @spinner
end

#timerObject

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_hObject



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