Class: Podio::AppStoreCategory

Inherits:
ActivePodio::Base show all
Defined in:
lib/podio/models/app_store_category.rb

Overview

Instance Attribute Summary

Attributes inherited from ActivePodio::Base

#attributes

Class Method Summary collapse

Methods inherited from ActivePodio::Base

#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, has_many, has_one, #hash, #initialize, #initialize_attributes, klass_from_string, list, member, #new_record?, output_attribute_as_json, #parent_model, #persisted?, property, #to_param

Constructor Details

This class inherits a constructor from ActivePodio::Base

Class Method Details

.find(category_id) ⇒ Object



12
13
14
# File 'lib/podio/models/app_store_category.rb', line 12

def find(category_id)
  member Podio.connection.get("/app_store/category/#{category_id}/v2").body
end

.find_all(options = {}) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'lib/podio/models/app_store_category.rb', line 17

def find_all(options = {})
  categories = Podio.connection.get("/app_store/category/", options).body

  categories.each do | key, value |
    categories[key] = list value
  end

  categories

end