Class: QRPC::Protocol::Abstract::Object
- Inherits:
-
Object
- Object
- QRPC::Protocol::Abstract::Object
- Defined in:
- lib/qrpc/protocol/abstract/object.rb
Overview
Abstract request implementation.
Instance Attribute Summary collapse
-
#options ⇒ Hashie::Mash
Holds the object options.
Instance Method Summary collapse
-
#assign_options(options = { }) ⇒ Object
Assigns options to the object.
-
#initialize(init = { }) ⇒ Object
constructor
abstract
Constructor.
-
#serialize ⇒ String
abstract
Serializes object to the resultant form.
Constructor Details
Instance Attribute Details
#options ⇒ Hashie::Mash
Holds the object options.
41 42 43 |
# File 'lib/qrpc/protocol/abstract/object.rb', line 41 def @options end |
Instance Method Details
#assign_options(options = { }) ⇒ Object
Assigns options to the object.
63 64 65 |
# File 'lib/qrpc/protocol/abstract/object.rb', line 63 def ( = { }) @options = @options.merge() end |
#serialize ⇒ String
This method is abstract.
Serializes object to the resultant form.
74 75 76 |
# File 'lib/qrpc/protocol/abstract/object.rb', line 74 def serialize not_implemented end |