Class: Ayadn::PreferencesTimeline
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#compact ⇒ Object
Returns the value of attribute compact.
-
#date ⇒ Object
Returns the value of attribute date.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#directed ⇒ Object
Returns the value of attribute directed.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#symbols ⇒ Object
Returns the value of attribute symbols.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesTimeline
constructor
A new instance of PreferencesTimeline.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesTimeline
Returns a new instance of PreferencesTimeline.
96 97 98 99 100 101 102 103 104 |
# File 'lib/ayadn/preferences_object.rb', line 96 def initialize hash @directed = hash[:directed] @source = hash[:source] @symbols = hash[:symbols] @name = hash[:name] @date = hash[:date] @debug = hash[:debug] @compact = hash[:compact] end |
Instance Attribute Details
#compact ⇒ Object
Returns the value of attribute compact.
95 96 97 |
# File 'lib/ayadn/preferences_object.rb', line 95 def compact @compact end |
#date ⇒ Object
Returns the value of attribute date.
95 96 97 |
# File 'lib/ayadn/preferences_object.rb', line 95 def date @date end |
#debug ⇒ Object
Returns the value of attribute debug.
95 96 97 |
# File 'lib/ayadn/preferences_object.rb', line 95 def debug @debug end |
#directed ⇒ Object
Returns the value of attribute directed.
95 96 97 |
# File 'lib/ayadn/preferences_object.rb', line 95 def directed @directed end |
#name ⇒ Object
Returns the value of attribute name.
95 96 97 |
# File 'lib/ayadn/preferences_object.rb', line 95 def name @name end |
#source ⇒ Object
Returns the value of attribute source.
95 96 97 |
# File 'lib/ayadn/preferences_object.rb', line 95 def source @source end |
#symbols ⇒ Object
Returns the value of attribute symbols.
95 96 97 |
# File 'lib/ayadn/preferences_object.rb', line 95 def symbols @symbols end |
Instance Method Details
#to_h ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/ayadn/preferences_object.rb', line 105 def to_h { directed: @directed, source: @source, symbols: @symbols, name: @name, date: @date, debug: @debug, compact: @compact } end |