Class: Keepcon::Mapping
- Inherits:
-
Object
- Object
- Keepcon::Mapping
- Defined in:
- lib/keepcon/mapping.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Mapping
constructor
A new instance of Mapping.
Constructor Details
#initialize(params = {}) ⇒ Mapping
Returns a new instance of Mapping.
5 6 7 |
# File 'lib/keepcon/mapping.rb', line 5 def initialize(params = {}) params.each { |k, v| send("#{k}=", v) } end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/keepcon/mapping.rb', line 3 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'lib/keepcon/mapping.rb', line 3 def to @to end |