Module: Nibo::ApiResource::List
- Included in:
- Nibo::Account, Category, Entity
- Defined in:
- lib/nibo/api_resource/list.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#list(type = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/nibo/api_resource/list.rb', line 4 def list(type=nil) method = :get url_with_method = "#{url}#{url_method(method)}s" params = object_param(type, method) if type response = api_request(url_with_method,method,params) response.map{ |object| create_from(object)} end |