class RealPage::AttributeParser::Decimal
Parse the response value of a decimal attribute
Public Instance Methods
parse()
click to toggle source
@return [Float] the parsed attribute value
# File lib/real_page/attribute_parser/decimal.rb, line 8 def parse Float(value) rescue ArgumentError raise Error::InvalidResponse, "Invalid decimal response value: #{value}" end