class GatherContent::Api::Statuses
Attributes
project_id[RW]
Public Class Methods
new(project_id)
click to toggle source
# File lib/gather_content/api/statuses.rb, line 8 def initialize(project_id) raise ArgumentError, "project_id is required!" if project_id.nil? @project_id = project_id end
Public Instance Methods
each() { |status| ... }
click to toggle source
# File lib/gather_content/api/statuses.rb, line 13 def each(&block) fetch.each do |status| yield GatherContent::Api::Status.new(@project_id, status['id'], status) end end
Private Instance Methods
params()
click to toggle source
# File lib/gather_content/api/statuses.rb, line 24 def params; end
path()
click to toggle source
# File lib/gather_content/api/statuses.rb, line 20 def path @path ||= "/projects/#{project_id}/statuses" end