class ActiveZuora::StringField

Public Instance Methods

type_cast(value) click to toggle source
# File lib/active_zuora/fields/string_field.rb, line 4
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