Sha256: 38faa3166a104e60b9a136dee4e4f4bf7b09eba584e26c4ed41b9ad7c8fca9b9

Contents?: true

Size: 733 Bytes

Versions: 87

Compression:

Stored size: 733 Bytes

Contents

module Braintree
  class Modification # :nodoc:
    include BaseModule

    attr_reader :amount
    attr_reader :created_at
    attr_reader :current_billing_cycle
    attr_reader :description
    attr_reader :id
    attr_reader :kind
    attr_reader :merchant_id
    attr_reader :name
    attr_reader :never_expires
    attr_reader :number_of_billing_cycles
    attr_reader :quantity
    attr_reader :updated_at

    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

87 entries across 87 versions & 1 rubygems

Version Path
braintree-3.3.0 lib/braintree/modification.rb
braintree-3.2.0 lib/braintree/modification.rb
braintree-3.1.0 lib/braintree/modification.rb
braintree-3.0.1 lib/braintree/modification.rb
braintree-2.104.1 lib/braintree/modification.rb
braintree-2.104.0 lib/braintree/modification.rb
braintree-2.103.0 lib/braintree/modification.rb
braintree-2.102.0 lib/braintree/modification.rb
braintree-2.101.0 lib/braintree/modification.rb
braintree-2.100.0 lib/braintree/modification.rb
braintree-2.99.0 lib/braintree/modification.rb
braintree-2.98.0 lib/braintree/modification.rb
braintree-2.97.0 lib/braintree/modification.rb
braintree-2.96.0 lib/braintree/modification.rb
braintree-2.95.0 lib/braintree/modification.rb
braintree-2.94.0 lib/braintree/modification.rb
braintree-2.93.0 lib/braintree/modification.rb
braintree-2.92.0 lib/braintree/modification.rb
braintree-2.91.0 lib/braintree/modification.rb
braintree-2.90.0 lib/braintree/modification.rb