Class: Sumac::RemoteReference
- Defined in:
- lib/sumac/remote_reference.rb
Instance Attribute Summary collapse
-
#remote_object ⇒ Object
readonly
Returns the value of attribute remote_object.
Attributes inherited from Reference
Instance Method Summary collapse
-
#initialize(connection, exposed_id) ⇒ RemoteReference
constructor
A new instance of RemoteReference.
- #remove ⇒ Object
Methods inherited from Reference
#callable?, #destroy, #detach, #local_forget_request, #remote_forget_request, #send_forget_notification, #stale?
Constructor Details
#initialize(connection, exposed_id) ⇒ RemoteReference
Returns a new instance of RemoteReference.
6 7 8 9 |
# File 'lib/sumac/remote_reference.rb', line 6 def initialize(connection, exposed_id) super(connection, exposed_id) @remote_object = RemoteObject.new(@connection, self) end |
Instance Attribute Details
#remote_object ⇒ Object (readonly)
Returns the value of attribute remote_object.
4 5 6 |
# File 'lib/sumac/remote_reference.rb', line 4 def remote_object @remote_object end |
Instance Method Details
#remove ⇒ Object
11 12 13 |
# File 'lib/sumac/remote_reference.rb', line 11 def remove @connection.remote_references.remove(self) end |