Module: Agris::Api::Inventory::DeliveryTickets
- Included in:
- Client
- Defined in:
- lib/agris/api/inventory/delivery_tickets.rb
Instance Method Summary collapse
- #delivery_ticket(ticket_location, ticket_number) ⇒ Object
- #delivery_tickets(extracts) ⇒ Object
- #delivery_tickets_changed_since(datetime, detail = false) ⇒ Object
Instance Method Details
#delivery_ticket(ticket_location, ticket_number) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/agris/api/inventory/delivery_tickets.rb', line 6 def delivery_ticket(ticket_location, ticket_number) extract = SpecificDeliveryTicketExtract.new( ticket_location, ticket_number ) delivery_tickets([extract]) end |
#delivery_tickets(extracts) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/agris/api/inventory/delivery_tickets.rb', line 14 def delivery_tickets(extracts) extract_documents( Messages::QueryDeliveryTicketDocuments.new(extracts), DeliveryTicket ) end |
#delivery_tickets_changed_since(datetime, detail = false) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/agris/api/inventory/delivery_tickets.rb', line 21 def delivery_tickets_changed_since(datetime, detail = false) extract_documents( Messages::QueryChangedDeliveryTickets.new(datetime, detail), DeliveryTicket ) end |