Class: Ayadn::StreamMetaObject
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#marker ⇒ Object
readonly
Returns the value of attribute marker.
-
#max_id ⇒ Object
readonly
Returns the value of attribute max_id.
-
#min_id ⇒ Object
readonly
Returns the value of attribute min_id.
-
#more ⇒ Object
readonly
Returns the value of attribute more.
Instance Method Summary collapse
-
#initialize(hash) ⇒ StreamMetaObject
constructor
A new instance of StreamMetaObject.
Constructor Details
#initialize(hash) ⇒ StreamMetaObject
Returns a new instance of StreamMetaObject.
23 24 25 26 27 28 29 30 |
# File 'lib/ayadn/stream_object.rb', line 23 def initialize hash @input = hash["meta"].nil? ? {} : hash["meta"] @marker = hash["meta"].nil? ? nil : StreamMarkerObject.new(@input) @min_id = @input["min_id"] @code = @input["code"] @max_id = @input["max_id"] @more = @input["more"] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
21 22 23 |
# File 'lib/ayadn/stream_object.rb', line 21 def code @code end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
21 22 23 |
# File 'lib/ayadn/stream_object.rb', line 21 def input @input end |
#marker ⇒ Object (readonly)
Returns the value of attribute marker.
21 22 23 |
# File 'lib/ayadn/stream_object.rb', line 21 def marker @marker end |
#max_id ⇒ Object (readonly)
Returns the value of attribute max_id.
21 22 23 |
# File 'lib/ayadn/stream_object.rb', line 21 def max_id @max_id end |
#min_id ⇒ Object (readonly)
Returns the value of attribute min_id.
21 22 23 |
# File 'lib/ayadn/stream_object.rb', line 21 def min_id @min_id end |
#more ⇒ Object (readonly)
Returns the value of attribute more.
21 22 23 |
# File 'lib/ayadn/stream_object.rb', line 21 def more @more end |