Sha256: 41354933e797faf9b823c99c6c859cde15b7205a03385e40c17c6ff5be0cb186

Contents?: true

Size: 734 Bytes

Versions: 17

Compression:

Stored size: 734 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

17 entries across 17 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/modification.rb
braintree-4.14.0 lib/braintree/modification.rb
braintree-4.13.0 lib/braintree/modification.rb
braintree-4.12.0 lib/braintree/modification.rb
braintree-4.11.0 lib/braintree/modification.rb
braintree-4.10.0 lib/braintree/modification.rb
braintree-4.9.0 lib/braintree/modification.rb
braintree-4.8.0 lib/braintree/modification.rb
braintree-4.7.0 lib/braintree/modification.rb
braintree-4.6.0 lib/braintree/modification.rb
braintree-4.5.0 lib/braintree/modification.rb
braintree-4.4.0 lib/braintree/modification.rb
braintree-4.3.0 lib/braintree/modification.rb
braintree-4.2.0 lib/braintree/modification.rb
braintree-4.1.0 lib/braintree/modification.rb
braintree-4.0.0 lib/braintree/modification.rb
braintree-3.4.0 lib/braintree/modification.rb