Module: Fortnox::API::Types::Sized::Float
- Defined in:
- lib/fortnox/api/types/sized.rb
Class Method Summary collapse
Class Method Details
.[](low, high) ⇒ Object
24 25 26 27 28 |
# File 'lib/fortnox/api/types/sized.rb', line 24 def self.[](low, high) Types::Strict::Float.constrained(gteq: low, lteq: high).optional.constructor do |value| value.to_f unless value.nil? end end |