Class: ButterCMS::Parsers::Post

Inherits:
Posts
  • Object
show all
Defined in:
lib/butter_cms/parsers/post.rb

Instance Method Summary collapse

Methods inherited from Posts

#count, #initialize, #next_page, #posts, #previous_page

Constructor Details

This class inherits a constructor from ButterCMS::Parsers::Posts

Instance Method Details

#postHash

Returns post attributes

Returns:

  • (Hash)


7
8
9
# File 'lib/butter_cms/parsers/post.rb', line 7

def post
  parsed_json['data']
end