Class: FreeAgent::CategoriesResource
- Defined in:
- lib/free_agent/resources/categories.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from FreeAgent::Resource
Instance Method Details
#list(**params) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/free_agent/resources/categories.rb', line 3 def list(**params) response = get_request("categories", params: params) responses = [] response.body.keys.each do |key| response.body[key].each do |value| value["category_type"] = key responses << Category.new(value) end end responses end |