lib/ury_rapid/common/payload.rb
# Whether the payload is a valid float
#
# This includes values that can be coerced into floats, such as
# decimal strings.
Whether the payload is a valid float
This includes values that can be coerced into floats, such as
decimal strings.
Whether the payload is a valid float This includes values that can be coerced into floats such as decimal strings .
def valid_float?
        Float(@body)
        true
      rescue ArgumentError
        false
      end
def valid_float? Float ( @body ) true rescue ArgumentError false end
Whether the payload is a valid float
This includes values that can be coerced into floats, such as
decimal strings.
Whether the payload is a valid float This includes values that can be coerced into floats such as decimal strings .
# A nicer way of doing this would be appreciated.