Exception: Measured::MissingConversionPath

Inherits:
UnitError
  • Object
show all
Defined in:
lib/measured/missing_conversion_path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ MissingConversionPath

Returns a new instance of MissingConversionPath.



6
7
8
9
10
# File 'lib/measured/missing_conversion_path.rb', line 6

def initialize(from, to)
  super("Cannot find conversion path from #{from} to #{to}.")
  @from = from
  @to = to
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



4
5
6
# File 'lib/measured/missing_conversion_path.rb', line 4

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



4
5
6
# File 'lib/measured/missing_conversion_path.rb', line 4

def to
  @to
end