Class: Funky::Post
- Inherits:
-
GraphRootNode
- Object
- GraphRootNode
- Funky::Post
- Defined in:
- lib/funky/post.rb
Instance Attribute Summary
Attributes inherited from GraphRootNode
Instance Method Summary collapse
-
#created_time ⇒ DateTime
The created time of the post.
-
#type ⇒ String
The type of post.
Methods inherited from GraphRootNode
Constructor Details
This class inherits a constructor from Funky::GraphRootNode
Instance Method Details
#created_time ⇒ DateTime
Returns the created time of the post.
9 10 11 |
# File 'lib/funky/post.rb', line 9 def created_time DateTime.parse data[:created_time] end |
#type ⇒ String
Returns the type of post.
4 5 6 |
# File 'lib/funky/post.rb', line 4 def type data[:type] end |