Module: PivotalTracker::Displayable::Story

Included in:
Console
Defined in:
lib/pivotal-tracker-console/displayable/story.rb

Instance Method Summary collapse

Instance Method Details

#display_story_info(story) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/pivotal-tracker-console/displayable/story.rb', line 8

def (story)
  display_story_title(story)
  
  puts %Q{
    "#{story.name}"
    
    - Created at: #{story.created_at}
    - Estimate: #{story.estimate}
    - Requested by: #{story.requested_by}
    - Owned by: #{story.owned_by}
    - Labels: #{story.labels}
    
    What more?
    
#{story.description}
}
end

#display_story_not_found(id) ⇒ Object



26
27
28
# File 'lib/pivotal-tracker-console/displayable/story.rb', line 26

def display_story_not_found(id)
  display_error "Story #{id} not found."
end

#display_story_title(story) ⇒ Object



4
5
6
# File 'lib/pivotal-tracker-console/displayable/story.rb', line 4

def display_story_title(story)
  puts "  - #{story.story_type.capitalize}: #{story.id} [#{story.current_state}]"
end