class Sumac::Message::Exchange::ShutdownNotification

Public Instance Methods

invert_orgin() click to toggle source
# File lib/sumac/message/exchange/shutdown_notification.rb, line 20
def invert_orgin
  nil
end
parse_json_structure(json_structure) click to toggle source
# File lib/sumac/message/exchange/shutdown_notification.rb, line 6
def parse_json_structure(json_structure)
  raise MessageError unless json_structure.is_a?(Hash) &&
    json_structure['message_type'] == 'exchange' &&
    json_structure['exchange_type'] == 'shutdown_notification'
  nil
end
to_json_structure() click to toggle source
# File lib/sumac/message/exchange/shutdown_notification.rb, line 13
def to_json_structure
  {
    'message_type' => 'exchange',
    'exchange_type' => 'shutdown_notification'
  }
end