Class: Keepcon::Mapping

Inherits:
Object
  • Object
show all
Defined in:
lib/keepcon/mapping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fromObject

Returns the value of attribute from.



3
4
5
# File 'lib/keepcon/mapping.rb', line 3

def from
  @from
end

#toObject

Returns the value of attribute to.



3
4
5
# File 'lib/keepcon/mapping.rb', line 3

def to
  @to
end