Class: Ayadn::StreamMarkerObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/stream_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/ayadn/stream_object.rb', line 6

def id
  @id
end

#inputObject (readonly)

Returns the value of attribute input.



6
7
8
# File 'lib/ayadn/stream_object.rb', line 6

def input
  @input
end

#last_read_idObject (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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/ayadn/stream_object.rb', line 6

def name
  @name
end

#percentageObject (readonly)

Returns the value of attribute percentage.



6
7
8
# File 'lib/ayadn/stream_object.rb', line 6

def percentage
  @percentage
end

#updated_atObject (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

#versionObject (readonly)

Returns the value of attribute version.



6
7
8
# File 'lib/ayadn/stream_object.rb', line 6

def version
  @version
end