Class: Agris::Api::Grain::SpecificContractExtract

Inherits:
Object
  • Object
show all
Includes:
XmlModel
Defined in:
lib/agris/api/grain/specific_contract_extract.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from XmlModel

included

Constructor Details

#initialize(contract_location, contract_number) ⇒ SpecificContractExtract

Returns a new instance of SpecificContractExtract.



10
11
12
13
# File 'lib/agris/api/grain/specific_contract_extract.rb', line 10

def initialize(contract_location, contract_number)
  @contract_location = contract_location
  @contract_number = contract_number
end

Instance Attribute Details

#contract_locationObject

Returns the value of attribute contract_location.



8
9
10
# File 'lib/agris/api/grain/specific_contract_extract.rb', line 8

def contract_location
  @contract_location
end

#contract_numberObject

Returns the value of attribute contract_number.



8
9
10
# File 'lib/agris/api/grain/specific_contract_extract.rb', line 8

def contract_number
  @contract_number
end