Module: Agris::Api::Grain::SalesContracts
- Included in:
- Client
- Defined in:
- lib/agris/api/grain/sales_contracts.rb
Instance Method Summary collapse
- #sales_contract(contract_location, contract_number) ⇒ Object
- #sales_contracts(extracts) ⇒ Object
- #sales_contracts_changed_since(datetime, detail = false) ⇒ Object
Instance Method Details
#sales_contract(contract_location, contract_number) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/agris/api/grain/sales_contracts.rb', line 6 def sales_contract(contract_location, contract_number) extract = Agris::Api::Grain::SpecificContractExtract .new(contract_location, contract_number) sales_contracts([extract]) end |
#sales_contracts(extracts) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/agris/api/grain/sales_contracts.rb', line 13 def sales_contracts(extracts) extract_documents( Messages::QuerySalesContractDocuments.new(extracts), Agris::Api::Grain::Contract ) end |
#sales_contracts_changed_since(datetime, detail = false) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/agris/api/grain/sales_contracts.rb', line 20 def sales_contracts_changed_since(datetime, detail = false) extract_documents( Messages::QueryChangedSalesContracts.new(datetime, detail), Agris::Api::Grain::Contract ) end |