Class: PanicBoardData::DataSequence
- Inherits:
-
Object
- Object
- PanicBoardData::DataSequence
- Defined in:
- lib/panic_board_data/data_sequence.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#refresh_every_n_seconds ⇒ Object
Returns the value of attribute refresh_every_n_seconds.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title) ⇒ DataSequence
constructor
A new instance of DataSequence.
Constructor Details
#initialize(title) ⇒ DataSequence
Returns a new instance of DataSequence.
6 7 8 9 10 |
# File 'lib/panic_board_data/data_sequence.rb', line 6 def initialize(title) @title = title @data = {} @refresh_every_n_seconds = 120 end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/panic_board_data/data_sequence.rb', line 4 def data @data end |
#refresh_every_n_seconds ⇒ Object
Returns the value of attribute refresh_every_n_seconds.
4 5 6 |
# File 'lib/panic_board_data/data_sequence.rb', line 4 def refresh_every_n_seconds @refresh_every_n_seconds end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/panic_board_data/data_sequence.rb', line 4 def title @title end |