Sha256: cd74f793785b42678d43c82c573cf1258829e403b22ad75ce9e4ce8a49a8c2da

Contents?: true

Size: 518 Bytes

Versions: 34

Compression:

Stored size: 518 Bytes

Contents

module Braintree
  class UnknownPaymentMethod
    include BaseModule

    attr_reader :token, :customer_id

    def initialize(gateway, attributes)
      @gateway = gateway
      nested_attributes = attributes[attributes.keys.first]
      set_instance_variables_from_hash(nested_attributes)
    end

    def default?
      @default
    end

    def image_url
      "https://assets.braintreegateway.com/payment_method_logo/unknown.png"
    end

    def self._new(*args) # :nodoc:
      self.new *args
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
braintree-2.80.1 lib/braintree/unknown_payment_method.rb
braintree-2.80.0 lib/braintree/unknown_payment_method.rb
braintree-2.79.0 lib/braintree/unknown_payment_method.rb
braintree-2.78.0 lib/braintree/unknown_payment_method.rb
braintree-2.77.0 lib/braintree/unknown_payment_method.rb
braintree-2.76.0 lib/braintree/unknown_payment_method.rb
braintree-2.75.0 lib/braintree/unknown_payment_method.rb
braintree-2.74.0 lib/braintree/unknown_payment_method.rb
braintree-2.73.0 lib/braintree/unknown_payment_method.rb
braintree-2.72.0 lib/braintree/unknown_payment_method.rb
braintree-2.71.0 lib/braintree/unknown_payment_method.rb
braintree-2.70.0 lib/braintree/unknown_payment_method.rb
braintree-2.69.1 lib/braintree/unknown_payment_method.rb
braintree-2.69.0 lib/braintree/unknown_payment_method.rb
braintree-2.68.2 lib/braintree/unknown_payment_method.rb
braintree-2.68.1 lib/braintree/unknown_payment_method.rb
braintree-2.68.0 lib/braintree/unknown_payment_method.rb
braintree-2.67.0 lib/braintree/unknown_payment_method.rb
braintree-2.66.0 lib/braintree/unknown_payment_method.rb
braintree-2.65.0 lib/braintree/unknown_payment_method.rb