Sha256: bb0342e21533a7c388544883bae919fbf922e831c1ae6b1d89a1843888023f4f

Contents?: true

Size: 694 Bytes

Versions: 22

Compression:

Stored size: 694 Bytes

Contents

module Braintree
  class Modification # :nodoc:
    include BaseModule

    attr_reader :amount
    attr_reader :created_at
    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

22 entries across 22 versions & 1 rubygems

Version Path
braintree-2.28.0 lib/braintree/modification.rb
braintree-2.27.1 lib/braintree/modification.rb
braintree-2.27.0 lib/braintree/modification.rb
braintree-2.26.0 lib/braintree/modification.rb
braintree-2.25.0 lib/braintree/modification.rb
braintree-2.24.0 lib/braintree/modification.rb
braintree-2.23.0 lib/braintree/modification.rb
braintree-2.22.0 lib/braintree/modification.rb
braintree-2.21.0 lib/braintree/modification.rb
braintree-2.20.0 lib/braintree/modification.rb
braintree-2.19.0 lib/braintree/modification.rb
braintree-2.18.0 lib/braintree/modification.rb
braintree-2.17.0 lib/braintree/modification.rb
braintree-2.16.0 lib/braintree/modification.rb
braintree-2.15.0 lib/braintree/modification.rb
braintree-2.14.0 lib/braintree/modification.rb
braintree-2.13.4 lib/braintree/modification.rb
braintree-2.13.3 lib/braintree/modification.rb
braintree-2.13.2 lib/braintree/modification.rb
braintree-2.13.1 lib/braintree/modification.rb