Class: DesignerNews::Story

Inherits:
Model
  • Object
show all
Defined in:
lib/designer_news/story.rb

Class Method Summary collapse

Methods inherited from Model

build_associations, #set_context

Class Method Details

.find(story_id) ⇒ Object



4
5
6
7
# File 'lib/designer_news/story.rb', line 4

def find(story_id)
  resp = MultiJson.decode(LayerVault.client.story(story_id))
  instance = new(resp)
end