Class: Calibrate::Configurable::ProxyValue
- Inherits:
-
Object
- Object
- Calibrate::Configurable::ProxyValue
- Defined in:
- lib/calibrate/configurable/proxy-value.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, field) ⇒ ProxyValue
constructor
A new instance of ProxyValue.
- #inspect ⇒ Object
Constructor Details
#initialize(source, field) ⇒ ProxyValue
Returns a new instance of ProxyValue.
4 5 6 |
# File 'lib/calibrate/configurable/proxy-value.rb', line 4 def initialize(source, field) @source, @field = source, field end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
7 8 9 |
# File 'lib/calibrate/configurable/proxy-value.rb', line 7 def field @field end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/calibrate/configurable/proxy-value.rb', line 7 def source @source end |
Instance Method Details
#inspect ⇒ Object
9 10 11 |
# File 'lib/calibrate/configurable/proxy-value.rb', line 9 def inspect "#{self.class.name.split(':').last}: #{source.class.name}.#{field.inspect}" end |