Class: Sumac::Message::Exchange::Base

Inherits:
Sumac::Message::Exchange show all
Defined in:
lib/sumac/message/exchange/base.rb

Direct Known Subclasses

CallRequest, CallResponse, Notification

Class Method Summary collapse

Methods inherited from Sumac::Message

from_json, #initialize, #to_json

Constructor Details

This class inherits a constructor from Sumac::Message

Class Method Details

.from_json_structure(connection, json_structure) ⇒ Object



6
7
8
9
10
# File 'lib/sumac/message/exchange/base.rb', line 6

def self.from_json_structure(connection, json_structure)
  object = new(connection)
  object.parse_json_structure(json_structure)
  object
end