Class: Sumac::LocalReference

Inherits:
Reference show all
Defined in:
lib/sumac/local_reference.rb

Instance Attribute Summary collapse

Attributes inherited from Reference

#exposed_id

Instance Method Summary collapse

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_objectObject (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

#removeObject



11
12
13
# File 'lib/sumac/local_reference.rb', line 11

def remove
  @connection.local_references.remove(self)
end