Class: Fiesta::Story
- Inherits:
-
Object
- Object
- Fiesta::Story
- Defined in:
- lib/fiesta/story.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#images ⇒ Object
12 13 14 |
# File 'lib/fiesta/story.rb', line 12 def images pr.body.to_s.scan(/https?:\/\/\S*\.(?:png|jpg|gif)/i) end |
#release_note ⇒ Object
8 9 10 |
# File 'lib/fiesta/story.rb', line 8 def release_note (release_note_in_body || title).strip end |
#to_markdown ⇒ Object
20 21 22 |
# File 'lib/fiesta/story.rb', line 20 def to_markdown "- [#{title}](#{url})" end |
#url ⇒ Object
16 17 18 |
# File 'lib/fiesta/story.rb', line 16 def url pr.html_url end |