Method: Ayadn::StreamMetaObject#initialize

Defined in:
lib/ayadn/stream_object.rb

#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