class Forrst::ListOfPosts

Attributes

authenticated[R]
authenticated_as[R]
environment[R]
in[R]
raw_data[R]
status[R]

Public Class Methods

new(data) click to toggle source
# File lib/forrst/list_of_posts.rb, line 8
def initialize(data)
    @status           = data['stat']
    @in               = data['in']
    @authenticated    = data['authed']
    @authenticated_as = data['authed_as']
    @environment      = data['env']
    @raw_data         = data
end

Public Instance Methods

add_post(post) click to toggle source
# File lib/forrst/list_of_posts.rb, line 17
def add_post(post)
  self << post
end