Class: Stall::Addresses::CopierBase
- Inherits:
-
Object
- Object
- Stall::Addresses::CopierBase
- Defined in:
- lib/stall/addresses/copier_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
- #copy ⇒ Object
-
#initialize(source, target) ⇒ CopierBase
constructor
A new instance of CopierBase.
Constructor Details
#initialize(source, target) ⇒ CopierBase
Returns a new instance of CopierBase.
6 7 8 9 |
# File 'lib/stall/addresses/copier_base.rb', line 6 def initialize(source, target) @source = source @target = target end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
4 5 6 |
# File 'lib/stall/addresses/copier_base.rb', line 4 def source @source end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
4 5 6 |
# File 'lib/stall/addresses/copier_base.rb', line 4 def target @target end |
Instance Method Details
#copy ⇒ Object
11 12 13 |
# File 'lib/stall/addresses/copier_base.rb', line 11 def copy fail NotImplementedError end |