class Clubhouse::Workflow

Constants

State

Public Class Methods

delete(id = nil) click to toggle source
# File lib/clubhouse/workflow.rb, line 15
def self.delete(id = nil)
  raise NotSupportedByAPIError,
    "You can't delete workflows over the API, please use clubhouse web"
end
find(id = nil) click to toggle source
# File lib/clubhouse/workflow.rb, line 20
def self.find(id = nil)
  raise NotSupportedByAPIError,
    "You can only list all workflows, please use Clubhouse::Workflow.all"
end

Public Instance Methods

save() click to toggle source
# File lib/clubhouse/workflow.rb, line 10
def save
  raise NotSupportedByAPIError,
    "You can't manage workflows over the API, please use clubhouse web"
end
states() click to toggle source
# File lib/clubhouse/workflow.rb, line 25
def states
  @_states ||= Array(@states).collect do |s|
    State.new(
      s['color'],
      s['created_at'],
      s['description'],
      s['id'],
      s['name'],
      s['num_stories'],
      s['position'],
      s['type'],
      s['updated_at'],
      s['verb']
    )
  end
end