Sha256: 6a7be9f76c104d45046b8b62064459601ab3817e42a486c2c68252ece0232fc6

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

module Fortnox
  module API
    module Types

      module Required
        String = Types::Strict::String.constructor{ |value| value.to_s unless value.nil? }.with( required: true )
        Integer = Types::Strict::Int.constructor{ |value| value.to_i unless value.nil? }.with( required: true )
        Float = Types::Strict::Float.constructor{ |value| value.to_f unless value.nil? }.with( required: true )
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fortnox-api-0.5.2 lib/fortnox/api/types/required.rb
fortnox-api-0.5.1 lib/fortnox/api/types/required.rb
fortnox-api-0.5.0 lib/fortnox/api/types/required.rb
fortnox-api-0.4.0 lib/fortnox/api/types/required.rb
fortnox-api-0.3.0 lib/fortnox/api/types/required.rb
fortnox-api-0.2.0 lib/fortnox/api/types/required.rb