Class: Sumac::LocalReference
- Defined in:
- lib/sumac/local_reference.rb
Instance Attribute Summary collapse
-
#exposed_object ⇒ Object
readonly
Returns the value of attribute exposed_object.
Attributes inherited from Reference
Instance Method Summary collapse
-
#initialize(connection, exposed_id, exposed_object) ⇒ LocalReference
constructor
A new instance of LocalReference.
- #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, exposed_object) ⇒ LocalReference
Returns a new instance of LocalReference.
6 7 8 9 |
# File 'lib/sumac/local_reference.rb', line 6 def initialize(connection, exposed_id, exposed_object) super(connection, exposed_id) @exposed_object = exposed_object end |
Instance Attribute Details
#exposed_object ⇒ Object (readonly)
Returns the value of attribute exposed_object.
4 5 6 |
# File 'lib/sumac/local_reference.rb', line 4 def exposed_object @exposed_object end |
Instance Method Details
#remove ⇒ Object
11 12 13 |
# File 'lib/sumac/local_reference.rb', line 11 def remove @connection.local_references.remove(self) end |