Class: Ayadn::StreamMetaObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



21
22
23
# File 'lib/ayadn/stream_object.rb', line 21

def code
  @code
end

#inputObject (readonly)

Returns the value of attribute input.



21
22
23
# File 'lib/ayadn/stream_object.rb', line 21

def input
  @input
end

#markerObject (readonly)

Returns the value of attribute marker.



21
22
23
# File 'lib/ayadn/stream_object.rb', line 21

def marker
  @marker
end

#max_idObject (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_idObject (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

#moreObject (readonly)

Returns the value of attribute more.



21
22
23
# File 'lib/ayadn/stream_object.rb', line 21

def more
  @more
end