Class: ButterCMS::Parsers::Categories

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

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Categories

Returns a new instance of Categories.



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

def initialize(response)
  @response = response
end

Instance Method Details

#categoriesArray

Returns array of category attributes available in the response

Returns:

  • (Array)


14
15
16
# File 'lib/butter_cms/parsers/categories.rb', line 14

def categories
  parsed_json['data']
end