class Sumac::Message::Object::Base

Public Class Methods

from_json_structure(connection, json_structure) click to toggle source
# 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) click to toggle source
# 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