Class: Agris::Api::Messages::MessageBase

Inherits:
Object
  • Object
show all
Defined in:
lib/agris/api/messages/message_base.rb

Direct Known Subclasses

Import, QueryBase

Instance Method Summary collapse

Instance Method Details

#message_numberObject



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

def message_number
  fail 'You must override the message number'
end

#to_xmlObject



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

def to_xml
  Gyoku.xml(message_hash)
end