Class: Funky::Post

Inherits:
GraphRootNode show all
Defined in:
lib/funky/post.rb

Instance Attribute Summary

Attributes inherited from GraphRootNode

#data

Instance Method Summary collapse

Methods inherited from GraphRootNode

#id, #initialize

Constructor Details

This class inherits a constructor from Funky::GraphRootNode

Instance Method Details

#created_timeDateTime

Returns the created time of the post.

Returns:

  • (DateTime)

    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

#typeString

Returns the type of post.

Returns:

  • (String)

    the type of post.



4
5
6
# File 'lib/funky/post.rb', line 4

def type
  data[:type]
end