Class: Skyfall::Firehose::LabelsMessage
- Inherits:
-
Object
- Object
- Skyfall::Firehose::LabelsMessage
- Defined in:
- lib/skyfall/firehose/labels_message.rb
Instance Attribute Summary collapse
-
#data_object ⇒ Object
readonly
Returns the value of attribute data_object.
-
#seq ⇒ Object
readonly
Returns the value of attribute seq.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#type_object ⇒ Object
readonly
Returns the value of attribute type_object.
Instance Method Summary collapse
-
#initialize(type_object, data_object) ⇒ LabelsMessage
constructor
A new instance of LabelsMessage.
- #labels ⇒ Object
Constructor Details
#initialize(type_object, data_object) ⇒ LabelsMessage
Returns a new instance of LabelsMessage.
11 12 13 14 15 16 17 |
# File 'lib/skyfall/firehose/labels_message.rb', line 11 def initialize(type_object, data_object) @type_object = type_object @data_object = data_object @type = @type_object['t'][1..-1].to_sym @seq = @data_object['seq'] end |
Instance Attribute Details
#data_object ⇒ Object (readonly)
Returns the value of attribute data_object.
8 9 10 |
# File 'lib/skyfall/firehose/labels_message.rb', line 8 def data_object @data_object end |
#seq ⇒ Object (readonly)
Returns the value of attribute seq.
9 10 11 |
# File 'lib/skyfall/firehose/labels_message.rb', line 9 def seq @seq end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/skyfall/firehose/labels_message.rb', line 9 def type @type end |
#type_object ⇒ Object (readonly)
Returns the value of attribute type_object.
8 9 10 |
# File 'lib/skyfall/firehose/labels_message.rb', line 8 def type_object @type_object end |