Class: ButterCMS::Parsers::Categories
- Inherits:
-
Object
- Object
- ButterCMS::Parsers::Categories
- Defined in:
- lib/butter_cms/parsers/categories.rb
Instance Method Summary collapse
-
#categories ⇒ Array
Returns array of category attributes available in the response.
-
#initialize(response) ⇒ Categories
constructor
A new instance of Categories.
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
#categories ⇒ Array
Returns array of category attributes available in the response
14 15 16 |
# File 'lib/butter_cms/parsers/categories.rb', line 14 def categories parsed_json['data'] end |