Sha256: 5032168bb2426b996d80598ff573a0b9c01baf8dac81ef1a4fe5b1da9a0828ac

Contents?: true

Size: 704 Bytes

Versions: 8

Compression:

Stored size: 704 Bytes

Contents

module Braintree
  class Modification
    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)
        self.new(*args)
      end
    end

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

    def never_expires?
      @never_expires
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/modification.rb
braintree-4.22.0 lib/braintree/modification.rb
braintree-4.21.0 lib/braintree/modification.rb
braintree-4.20.0 lib/braintree/modification.rb
braintree-4.19.0 lib/braintree/modification.rb
braintree-4.18.0 lib/braintree/modification.rb
braintree-4.17.0 lib/braintree/modification.rb
braintree-4.16.0 lib/braintree/modification.rb