Class: PanicBoardData::Graph
- Inherits:
-
Object
- Object
- PanicBoardData::Graph
- Defined in:
- lib/panic_board_data/graph.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#data_sequences ⇒ Object
Returns the value of attribute data_sequences.
-
#title ⇒ Object
Returns the value of attribute title.
-
#total ⇒ Object
Returns the value of attribute total.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ Graph
constructor
A new instance of Graph.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize ⇒ Graph
Returns a new instance of Graph.
12 13 14 |
# File 'lib/panic_board_data/graph.rb', line 12 def initialize @data_sequences = [] end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
9 10 11 |
# File 'lib/panic_board_data/graph.rb', line 9 def color @color end |
#data_sequences ⇒ Object
Returns the value of attribute data_sequences.
10 11 12 |
# File 'lib/panic_board_data/graph.rb', line 10 def data_sequences @data_sequences end |
#title ⇒ Object
Returns the value of attribute title.
9 10 11 |
# File 'lib/panic_board_data/graph.rb', line 9 def title @title end |
#total ⇒ Object
Returns the value of attribute total.
9 10 11 |
# File 'lib/panic_board_data/graph.rb', line 9 def total @total end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/panic_board_data/graph.rb', line 9 def type @type end |
Instance Method Details
#to_hash ⇒ Object
16 17 18 19 20 |
# File 'lib/panic_board_data/graph.rb', line 16 def to_hash { 'graph' => graph } end |
#to_json ⇒ Object
22 23 24 |
# File 'lib/panic_board_data/graph.rb', line 22 def to_json to_hash.to_json end |