Class: Ayadn::StreamObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ StreamObject

Returns a new instance of StreamObject.



48
49
50
51
52
53
# File 'lib/ayadn/stream_object.rb', line 48

def initialize hash
	@input = hash
	@meta = StreamMetaObject.new(@input)
	@data = StreamDataObject.new(@input)
   @posts = @data.posts
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



45
46
47
# File 'lib/ayadn/stream_object.rb', line 45

def data
  @data
end

#inputObject (readonly)

Returns the value of attribute input.



45
46
47
# File 'lib/ayadn/stream_object.rb', line 45

def input
  @input
end

#metaObject (readonly)

Returns the value of attribute meta.



45
46
47
# File 'lib/ayadn/stream_object.rb', line 45

def meta
  @meta
end

#postsObject (readonly)

Returns the value of attribute posts.



45
46
47
# File 'lib/ayadn/stream_object.rb', line 45

def posts
  @posts
end

#viewObject

Returns the value of attribute view.



46
47
48
# File 'lib/ayadn/stream_object.rb', line 46

def view
  @view
end