class Story

Attributes

story[RW]

Public Class Methods

new(story) click to toggle source
# File lib/bbc/story.rb, line 9
def initialize(story)
  @story = story
end

Public Instance Methods

description() click to toggle source
# File lib/bbc/story.rb, line 17
def description
  @story["description"]
end
image() click to toggle source
# File lib/bbc/story.rb, line 25
def image
  @story["thumbnail"]
end
title() click to toggle source
# File lib/bbc/story.rb, line 13
def title
  @story["title"]
end