Sha256: 6ba08c45d7fac0ae5be9376cf4d0ea49bb2a2304a47ca1dfeee9098c3d1a6905

Contents?: true

Size: 219 Bytes

Versions: 30

Compression:

Stored size: 219 Bytes

Contents

module ActiveZuora
  class IntegerField < Field
    
    def type_cast(value)
      return value if value.nil? || value.is_a?(Integer)
      return value.to_i if value.respond_to?(:to_i)
      default
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
active_zuora-2.1.2 lib/active_zuora/fields/integer_field.rb
active_zuora-2.1.1 lib/active_zuora/fields/integer_field.rb
active_zuora-2.0.6 lib/active_zuora/fields/integer_field.rb
active_zuora-2.1.0 lib/active_zuora/fields/integer_field.rb
active_zuora-2.0.5 lib/active_zuora/fields/integer_field.rb
active_zuora-2.0.4 lib/active_zuora/fields/integer_field.rb
active_zuora-2.0.3 lib/active_zuora/fields/integer_field.rb
active_zuora-2.0.2 lib/active_zuora/fields/integer_field.rb
active_zuora-2.0.1 lib/active_zuora/fields/integer_field.rb
active_zuora-2.0.0 lib/active_zuora/fields/integer_field.rb