Sha256: ef72f0e5e0715b562895f65b2ca6bb6828b7b0a0ff9863ba2355a075c0300ea7

Contents?: true

Size: 571 Bytes

Versions: 11

Compression:

Stored size: 571 Bytes

Contents

module Braintree
  class SEPABankAccount
    include BaseModule

    module MandateType
      Business = 'business'
      Consumer = 'consumer'
    end

    attr_reader :token, :image_url

    def initialize(gateway, attributes) # :nodoc:
      @gateway = gateway
      set_instance_variables_from_hash(attributes)
    end

    class << self
      protected :new
    end

    def self._new(*args)
      self.new(*args)
    end

    def self.find(token)
      Configuration.gateway.sepa_bank_account.find(token)
    end

    def default?
      @default
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
braintree-2.40.0 lib/braintree/sepa_bank_account.rb
braintree-2.39.0 lib/braintree/sepa_bank_account.rb
braintree-2.38.0 lib/braintree/sepa_bank_account.rb
braintree-2.37.0 lib/braintree/sepa_bank_account.rb
braintree-2.36.0 lib/braintree/sepa_bank_account.rb
braintree-2.35.0 lib/braintree/sepa_bank_account.rb
braintree-2.34.1 lib/braintree/sepa_bank_account.rb
braintree-2.34.0 lib/braintree/sepa_bank_account.rb
braintree-2.33.1 lib/braintree/sepa_bank_account.rb
braintree-2.33.0 lib/braintree/sepa_bank_account.rb
braintree-2.32.1 lib/braintree/sepa_bank_account.rb