Class: DesignerNews::Comment

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

Class Method Summary collapse

Methods inherited from Model

build_associations, #set_context

Class Method Details

.find(comment_id) ⇒ Object



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

def find(comment_id)
  resp = MultiJson.decode(LayerVault.client.comment(comment_id))
  instance = new(resp)
end