Class: Correspondence::With::Proxy
- Inherits:
-
Object
- Object
- Correspondence::With::Proxy
- Defined in:
- lib/correspondence/with/proxy.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(root, name, options) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(root, name, options) ⇒ Proxy
Returns a new instance of Proxy.
6 7 8 9 10 11 12 13 14 |
# File 'lib/correspondence/with/proxy.rb', line 6 def initialize(root, name, ) @root = root @name = name.to_sym @options = @target = set_target @options[:on] ||= :id @options[:using] ||= :find create_association end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/correspondence/with/proxy.rb', line 4 def name @name end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
4 5 6 |
# File 'lib/correspondence/with/proxy.rb', line 4 def root @root end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
4 5 6 |
# File 'lib/correspondence/with/proxy.rb', line 4 def target @target end |