Class: ButterCMS::Category
- Defined in:
- lib/butter_cms/category.rb
Class Method Summary collapse
-
.all ⇒ Array<ButterCMS::Category>
Returns all categories.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from ButterCMS::Resource
Class Method Details
.all ⇒ Array<ButterCMS::Category>
Returns all categories
7 8 9 10 11 12 |
# File 'lib/butter_cms/category.rb', line 7 def self.all response = ::ButterCMS::Requests::Get.call("categories") attributes = ::ButterCMS::Parsers::Categories.new(response).categories ::ButterCMS::Parsers::CategoriesObjects.call(attributes) end |