Class: Amsi::AttributeParser::Decimal
- Defined in:
- lib/amsi/attribute_parser/decimal.rb
Overview
Parse the response value of a decimal attribute
Instance Method Summary collapse
-
#parse ⇒ Float
The parsed attribute value.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Amsi::AttributeParser::Base
Instance Method Details
#parse ⇒ Float
Returns the parsed attribute value.
8 9 10 11 12 |
# File 'lib/amsi/attribute_parser/decimal.rb', line 8 def parse Float(value) rescue ArgumentError raise Error::InvalidResponse, "Invalid decimal response value: #{value}" end |