Class: RelaxDB::BelongsToProxy
- Inherits:
-
Object
- Object
- RelaxDB::BelongsToProxy
- Defined in:
- lib/relaxdb/belongs_to_proxy.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(client, relationship) ⇒ BelongsToProxy
constructor
A new instance of BelongsToProxy.
Constructor Details
#initialize(client, relationship) ⇒ BelongsToProxy
Returns a new instance of BelongsToProxy.
7 8 9 10 11 |
# File 'lib/relaxdb/belongs_to_proxy.rb', line 7 def initialize(client, relationship) @client = client @relationship = relationship @target = nil end |
Instance Attribute Details
#target ⇒ Object
Returns the value of attribute target.
5 6 7 |
# File 'lib/relaxdb/belongs_to_proxy.rb', line 5 def target @target end |