Sha256: dc5c5a66ce14d629ea0cd4db5d3dfe39b21e4b50d276c29b8f0e06955f2b9d2a

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

module Zuora
  module Models
    class RatePlanChargeTier
      include ActiveModel::Model

      ATTRIBUTES = :tier,
                   :starting_unit,
                   :ending_unit,
                   :price,
                   :price_format

      attr_accessor(*ATTRIBUTES)

      def attributes
        ATTRIBUTES
      end

      validates :tier,
                :price,
                presence: true

      validates :price_format,
                inclusion: { in: %w(FlatFee PerUnit) },
                allow_nil: true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zuora-ruby-0.1.0 lib/zuora/models/tier.rb