class Ayadn::StreamDataObject

Attributes

input[R]
posts[R]

Public Class Methods

new(hash) click to toggle source
# File lib/ayadn/stream_object.rb, line 37
def initialize hash
        @input = hash["data"]
@posts = @input.blank? ? [] : @input.map { |post| PostObject.new(post) }
end