Module: Ekylibre::Tele::Idele

Defined in:
lib/ekylibre/tele/idele.rb,
lib/ekylibre/tele/idele/generator.rb

Defined Under Namespace

Classes: Generator

Instance Method Summary collapse

Instance Method Details

#create_cattle_entrance(_animal_country_code, _animal_id, _entry_date, _entry_reason, _src_country_code, _src_farm_number, _src_owner_name, _prod_code, _cattle_categ_code) ⇒ Object

HIGH-LEVEL API #########


6
7
8
9
10
11
12
# File 'lib/ekylibre/tele/idele.rb', line 6

def create_cattle_entrance(_animal_country_code, _animal_id, , _entry_reason, _src_country_code, _src_farm_number, _src_owner_name, _prod_code, _cattle_categ_code)
  # TODO
  authenticate

  # token, farm_country_code and farm_number could be retrieved from Ekylibre instance.
  # create_cattle_entrance( @token, @farm_country_code, @farm_number, animal_country_code, animal_id, entry_date, entry_reason, src_farm_country_code, src_farm_number, src_farm_owner_name, prod_code, cattle_categ_code  )
end

#create_cattle_exitObject


14
15
16
17
# File 'lib/ekylibre/tele/idele.rb', line 14

def create_cattle_exit
  # TODO
  authenticate
end

#InitializeObject


19
20
21
22
23
24
25
26
27
28
# File 'lib/ekylibre/tele/idele.rb', line 19

def Initialize
  # if service = NetService.find_by(reference_name: :synel)
  #  synel_first_part = service.identifiers.find_by(nature: :synel_username).value.to_s
  #  synel_second_part = Identifier.find_by(nature: :cattling_number).value.to_s
  #  synel_last_part = "IP"
  #  synel_file_extension = ".csv"
  # else

  # end
end