Class: Sirius::Post

Inherits:
Object
  • Object
show all
Extended by:
Attribute
Defined in:
lib/sirius/post.rb

Overview

All posts from threads maps on this class

Class Method Summary collapse

Class Method Details

.parse(json) ⇒ Object

:nodoc:



14
15
16
17
18
19
20
# File 'lib/sirius/post.rb', line 14

def parse(json) #:nodoc: 
  i = self.new
  json.each do |key, value|
    i.send("#{key}=", value)
  end
  i
end