Class: PanicBoardData::DataSequence

Inherits:
Object
  • Object
show all
Defined in:
lib/panic_board_data/data_sequence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

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_secondsObject

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

#titleObject

Returns the value of attribute title


4
5
6
# File 'lib/panic_board_data/data_sequence.rb', line 4

def title
  @title
end