Class: Ayadn::StreamObject
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#posts ⇒ Object
readonly
Returns the value of attribute posts.
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(hash) ⇒ StreamObject
constructor
A new instance of StreamObject.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
45 46 47 |
# File 'lib/ayadn/stream_object.rb', line 45 def data @data end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
45 46 47 |
# File 'lib/ayadn/stream_object.rb', line 45 def input @input end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
45 46 47 |
# File 'lib/ayadn/stream_object.rb', line 45 def @meta end |
#posts ⇒ Object (readonly)
Returns the value of attribute posts.
45 46 47 |
# File 'lib/ayadn/stream_object.rb', line 45 def posts @posts end |
#view ⇒ Object
Returns the value of attribute view.
46 47 48 |
# File 'lib/ayadn/stream_object.rb', line 46 def view @view end |