Module: Fortnox::API::Types::Sized::Integer
- Defined in:
- lib/fortnox/api/types/sized.rb
Class Method Summary collapse
Class Method Details
.[](low, high) ⇒ Object
12 13 14 |
# File 'lib/fortnox/api/types/sized.rb', line 12 def self.[]( low, high ) Types::Strict::Int.constrained( gteq: low, lteq: high ).optional.constructor{ |value| value.to_i unless value.nil? } end |