Class: Ayadn::PreferencesTimeline

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#compactObject

Returns the value of attribute compact.



95
96
97
# File 'lib/ayadn/preferences_object.rb', line 95

def compact
  @compact
end

#dateObject

Returns the value of attribute date.



95
96
97
# File 'lib/ayadn/preferences_object.rb', line 95

def date
  @date
end

#debugObject

Returns the value of attribute debug.



95
96
97
# File 'lib/ayadn/preferences_object.rb', line 95

def debug
  @debug
end

#directedObject

Returns the value of attribute directed.



95
96
97
# File 'lib/ayadn/preferences_object.rb', line 95

def directed
  @directed
end

#nameObject

Returns the value of attribute name.



95
96
97
# File 'lib/ayadn/preferences_object.rb', line 95

def name
  @name
end

#sourceObject

Returns the value of attribute source.



95
96
97
# File 'lib/ayadn/preferences_object.rb', line 95

def source
  @source
end

#symbolsObject

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_hObject



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