class PivotalButler::Story

Public Class Methods

id(story) click to toggle source
# File lib/pivotal_butler/story.rb, line 13
def id(story)
  "#" + story.id.to_s
end
nick(story) click to toggle source
# File lib/pivotal_butler/story.rb, line 4
def nick(story)
  name = story.owned_by
  if name
    PivotalButler::Setting.pivotal_tracker.nickname[name] || name
  else
    '未設定'
  end
end
state(story) click to toggle source
# File lib/pivotal_butler/story.rb, line 21
def state(story)
  story.current_state
end
story(story) click to toggle source
# File lib/pivotal_butler/story.rb, line 25
def story(story)
  story.name
end
type(story) click to toggle source
# File lib/pivotal_butler/story.rb, line 17
def type(story)
  story.story_type
end
url(story) click to toggle source
# File lib/pivotal_butler/story.rb, line 29
def url(story)
  story.url
end