Class: Sumac::Message::Object::Base
- Inherits:
-
Sumac::Message::Object
- Object
- Sumac::Message
- Sumac::Message::Object
- Sumac::Message::Object::Base
- Defined in:
- lib/sumac/message/object/base.rb
Direct Known Subclasses
Array, Boolean, Exception, Exposed, ExposedChild, Float, HashTable, Integer, NativeException, Null, String
Class Method Summary collapse
- .from_json_structure(connection, json_structure) ⇒ Object
- .from_native_object(connection, native_object) ⇒ Object
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 |