Sha256: 3bf3d9b3949c1e5284420c096dca42c9e2708eea60c3db0a43cc9f168d980011
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
module FellowshipOne class Status < ApiObject f1_attr_accessor :id, :name # Load the status by the specified ID. # # @param status_id The ID of the status to load. # # Returns a new Status object. def self.load_by_id(status_id) reader = StatusReader.new(status_id) self.new(reader) end # Constructor. # # @param reader (optional) The object that has the data. This can be a StatusReader or Hash object. def initialize(reader = nil) if reader.is_a?(StatusReader) initialize_from_json_object(reader.load_feed['fund']) elsif reader.is_a?(Hash) initialize_from_json_object(reader) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fellowshipone-api-0.9.0 | lib/api/status.rb |
fellowshipone-api-0.8.0 | lib/api/status.rb |
fellowshipone-api-0.7.0 | lib/api/status.rb |