Sha256: 050a2e46b1019c71fff596e97efb8a5e1fd38c539dc0b6ed3be8544e0613409f

Contents?: true

Size: 213 Bytes

Versions: 30

Compression:

Stored size: 213 Bytes

Contents

module ActiveZuora
  class StringField < Field

    def type_cast(value)
      return value if value.nil? || value.is_a?(String)
      return value.to_s if value.respond_to?(:to_s)
      default
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
active_zuora-2.6.0 lib/active_zuora/fields/string_field.rb
active_zuora-2.5.4 lib/active_zuora/fields/string_field.rb
active_zuora-2.5.3 lib/active_zuora/fields/string_field.rb
active_zuora-2.5.2 lib/active_zuora/fields/string_field.rb
active_zuora-2.5.1 lib/active_zuora/fields/string_field.rb
active_zuora-2.5.0 lib/active_zuora/fields/string_field.rb
active_zuora-2.4.1 lib/active_zuora/fields/string_field.rb
active_zuora-2.4.0 lib/active_zuora/fields/string_field.rb
active_zuora-2.3.1 lib/active_zuora/fields/string_field.rb
active_zuora-2.3.0 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.7 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.6 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.5 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.4 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.3 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.2 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.1 lib/active_zuora/fields/string_field.rb
active_zuora-2.2.0 lib/active_zuora/fields/string_field.rb
active_zuora-2.1.4 lib/active_zuora/fields/string_field.rb
active_zuora-2.1.3 lib/active_zuora/fields/string_field.rb