Sha256: d97c4388588081b5323e17109e49d70620d2d1bdbd8bf3cba315e805253589f6

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module Fortnox
  module API
    module Types
      module Required
        String = Types::Strict::String.constructor { |value| value&.to_s }.is(:required)
        Integer = Types::Strict::Integer.constructor { |value| value&.to_i }.is(:required)
        Float = Types::Strict::Float.constructor { |value| value&.to_f }.is(:required)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fortnox-api-0.8.2 lib/fortnox/api/types/required.rb
fortnox-api-0.8.1 lib/fortnox/api/types/required.rb
fortnox-api-0.9.0 lib/fortnox/api/types/required.rb