Class: Hakuban::ObjectManager::ManagedObject

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/hakuban/hakuban.rb

Direct Known Subclasses

ExposedObject, ObservedObject

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contract, descriptor) ⇒ ManagedObject

Returns a new instance of ManagedObject.



641
642
643
644
# File 'lib/hakuban/hakuban.rb', line 641

def initialize(contract, descriptor)
	@contract, @descriptor = contract, descriptor
	super()
end

Instance Attribute Details

#contractObject (readonly)

Returns the value of attribute contract.



640
641
642
# File 'lib/hakuban/hakuban.rb', line 640

def contract
  @contract
end

#descriptorObject (readonly)

Returns the value of attribute descriptor.



640
641
642
# File 'lib/hakuban/hakuban.rb', line 640

def descriptor
  @descriptor
end