Class: Ayadn::StreamMarkerObject
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#last_read_id ⇒ Object
readonly
Returns the value of attribute last_read_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#percentage ⇒ Object
readonly
Returns the value of attribute percentage.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(hash) ⇒ StreamMarkerObject
constructor
A new instance of StreamMarkerObject.
Constructor Details
#initialize(hash) ⇒ StreamMarkerObject
Returns a new instance of StreamMarkerObject.
8 9 10 11 12 13 14 15 16 |
# File 'lib/ayadn/stream_object.rb', line 8 def initialize hash @input = hash["marker"].nil? ? {} : hash["marker"] @name = @input["name"] @updated_at = @input["updated_at"] @version = @input["version"] @last_read_id = @input["last_read_id"] @percentage = @input["percentage"] @id = @input["id"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/ayadn/stream_object.rb', line 6 def id @id end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
6 7 8 |
# File 'lib/ayadn/stream_object.rb', line 6 def input @input end |
#last_read_id ⇒ Object (readonly)
Returns the value of attribute last_read_id.
6 7 8 |
# File 'lib/ayadn/stream_object.rb', line 6 def last_read_id @last_read_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/ayadn/stream_object.rb', line 6 def name @name end |
#percentage ⇒ Object (readonly)
Returns the value of attribute percentage.
6 7 8 |
# File 'lib/ayadn/stream_object.rb', line 6 def percentage @percentage end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/ayadn/stream_object.rb', line 6 def updated_at @updated_at end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
6 7 8 |
# File 'lib/ayadn/stream_object.rb', line 6 def version @version end |