Class: Sumac::Message::Object::Base

Inherits:
Sumac::Message::Object show all
Defined in:
lib/sumac/message/object/base.rb

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/object/base.rb', line 6

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

.from_native_object(connection, native_object) ⇒ Object



12
13
14
15
16
# File 'lib/sumac/message/object/base.rb', line 12

def self.from_native_object(connection, native_object)
  object = new(connection)
  object.parse_native_object(native_object)
  object
end