Sha256: b3a72a42c99508e9fff17f3119724960fed7d73e600259d502fae39766ee2f1a

Contents?: true

Size: 301 Bytes

Versions: 10

Compression:

Stored size: 301 Bytes

Contents

module EventbriteSDK
  class Resource
    class FieldComparable
      def value_for(type, field)
        if type == :currency && field.initial_value
          field.initial_value.values_at(:currency, :value).join(',')
        else
          field.initial_value
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eventbrite_sdk-3.6.0 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.4.0 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.3.1 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.3.0 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.2.0 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.1.6 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.1.5 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.1.4 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.1.3 lib/eventbrite_sdk/resource/field_comparable.rb
eventbrite_sdk-3.1.2 lib/eventbrite_sdk/resource/field_comparable.rb