Class: Story
- Inherits:
-
Object
- Object
- Story
- Defined in:
- lib/bbc/story.rb
Instance Attribute Summary collapse
-
#story ⇒ Object
Returns the value of attribute story.
Instance Method Summary collapse
- #description ⇒ Object
- #image ⇒ Object
-
#initialize(story) ⇒ Story
constructor
A new instance of Story.
- #link ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(story) ⇒ Story
Returns a new instance of Story.
9 10 11 |
# File 'lib/bbc/story.rb', line 9 def initialize(story) @story = story end |
Instance Attribute Details
#story ⇒ Object
Returns the value of attribute story.
7 8 9 |
# File 'lib/bbc/story.rb', line 7 def story @story end |
Instance Method Details
#description ⇒ Object
17 18 19 |
# File 'lib/bbc/story.rb', line 17 def description @story["description"] end |
#image ⇒ Object
25 26 27 |
# File 'lib/bbc/story.rb', line 25 def image @story["thumbnail"] end |
#link ⇒ Object
21 22 23 |
# File 'lib/bbc/story.rb', line 21 def link @story["link"] end |
#title ⇒ Object
13 14 15 |
# File 'lib/bbc/story.rb', line 13 def title @story["title"] end |