Class: Tazworks::OrderPagedResponse

Inherits:
PagedResponse show all
Defined in:
lib/tazworks/order_paged_response.rb

Overview

Handles pagination for Order responses such as GET All Orders

Instance Attribute Summary

Attributes inherited from PagedResponse

#ids, #raw_response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PagedResponse

#initialize, #last, #next, #next_page, #raw_json_response, #response_links, #response_to_models, #total_number_of_pages

Constructor Details

This class inherits a constructor from Tazworks::PagedResponse

Class Method Details

.base_classObject



6
7
8
# File 'lib/tazworks/order_paged_response.rb', line 6

def self.base_class
  Order
end

Instance Method Details

#map_individual_object_ids(ids, attributes) ⇒ Object



14
15
16
17
# File 'lib/tazworks/order_paged_response.rb', line 14

def map_individual_object_ids(ids, attributes)
  ids[:orderGuid] = attributes[:orderGuid]
  ids
end

#ordersObject



10
11
12
# File 'lib/tazworks/order_paged_response.rb', line 10

def orders
  response_to_models
end