Sha256: b8e4ac4b2dcbb39fe055142c70b4d3bc3de4ace9cc7eece108aae214bd8368ba
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
# encoding: utf-8 require 'forrst/post' module Forrst class ListOfPosts < Array attr_reader :status, :in, :authenticated, :authenticated_as, :environment, :raw_data def initialize(data) @status = data['stat'] @in = data['in'] @authenticated = data['authed'] @authenticated_as = data['authed_as'] @environment = data['env'] @raw_data = data end def add_post(post) self << post end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spruce-0.0.2 | lib/forrst/list_of_posts.rb |