Class: Agris::Api::Messages::Import

Inherits:
MessageBase show all
Defined in:
lib/agris/api/messages/import.rb

Instance Method Summary collapse

Methods inherited from MessageBase

#to_xml

Constructor Details

#initialize(model) ⇒ Import

Returns a new instance of Import.



6
7
8
# File 'lib/agris/api/messages/import.rb', line 6

def initialize(model)
  @model = model
end

Instance Method Details

#message_hashObject



14
15
16
17
18
# File 'lib/agris/api/messages/import.rb', line 14

def message_hash
  {
    xml: xml_hash
  }
end

#message_numberObject



10
11
12
# File 'lib/agris/api/messages/import.rb', line 10

def message_number
  82_320
end