Sha256: 1b748198ed1ac7a35bd001ca1ff55d6cd04e7b0bce7c5a34ba95165be495f059

Contents?: true

Size: 460 Bytes

Versions: 14

Compression:

Stored size: 460 Bytes

Contents

module Braintree
  class Modification # :nodoc:
    include BaseModule

    attr_reader :amount, :id, :number_of_billing_cycles, :quantity

    class << self
      protected :new
      def _new(*args) # :nodoc:
        self.new *args
      end
    end

    def initialize(attributes) # :nodoc:
      set_instance_variables_from_hash(attributes)
      @amount = Util.to_big_decimal(amount)
    end

    def never_expires?
      @never_expires
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
braintree-2.10.3 lib/braintree/modification.rb
braintree-2.11.0 lib/braintree/modification.rb
braintree-2.10.2 lib/braintree/modification.rb
braintree-2.10.1 lib/braintree/modification.rb
braintree-2.10.0 lib/braintree/modification.rb
braintree-2.9.1 lib/braintree/modification.rb
braintree-2.8.0 lib/braintree/modification.rb
braintree-2.7.0 lib/braintree/modification.rb
braintree-2.6.3 lib/braintree/modification.rb
braintree-2.6.2 lib/braintree/modification.rb
braintree-2.6.1 lib/braintree/modification.rb
braintree-2.6.0 lib/braintree/modification.rb
braintree-2.5.2 lib/braintree/modification.rb
braintree-2.5.1 lib/braintree/modification.rb