Sha256: 5a14001aadbf6b4beb91cc68be926a6c0e731c0791a69eec6f84f14069b4622d

Contents?: true

Size: 504 Bytes

Versions: 14

Compression:

Stored size: 504 Bytes

Contents

module Braintree
  class UnknownPaymentMethod
    include BaseModule

    attr_reader :token

    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

14 entries across 14 versions & 1 rubygems

Version Path
braintree-2.48.1 lib/braintree/unknown_payment_method.rb
braintree-2.48.0 lib/braintree/unknown_payment_method.rb
braintree-2.47.0 lib/braintree/unknown_payment_method.rb
braintree-2.46.0 lib/braintree/unknown_payment_method.rb
braintree-2.45.0 lib/braintree/unknown_payment_method.rb
braintree-2.44.0 lib/braintree/unknown_payment_method.rb
braintree-2.43.0 lib/braintree/unknown_payment_method.rb
braintree-2.42.0 lib/braintree/unknown_payment_method.rb
braintree-2.41.0 lib/braintree/unknown_payment_method.rb
braintree-2.40.0 lib/braintree/unknown_payment_method.rb
braintree-2.39.0 lib/braintree/unknown_payment_method.rb
braintree-2.38.0 lib/braintree/unknown_payment_method.rb
braintree-2.37.0 lib/braintree/unknown_payment_method.rb
braintree-2.36.0 lib/braintree/unknown_payment_method.rb