Module: Podio::ResponseWrapper
- Defined in:
- lib/podio/response_wrapper.rb
Instance Method Summary collapse
Instance Method Details
#collection(response) ⇒ Object
11 12 13 |
# File 'lib/podio/response_wrapper.rb', line 11 def collection(response) Struct.new(:all, :count, :total_count).new(response['items'], response['filtered'], response['total']) end |
#list(response) ⇒ Object
7 8 9 |
# File 'lib/podio/response_wrapper.rb', line 7 def list(response) response end |
#member(response) ⇒ Object
3 4 5 |
# File 'lib/podio/response_wrapper.rb', line 3 def member(response) response end |