Sha256: 69030911169218d8f129e16cbc8561ca581c6f05cc6fef3acf16560f3bea0bc5

Contents?: true

Size: 533 Bytes

Versions: 29

Compression:

Stored size: 533 Bytes

Contents

module Braintree
  class UnknownPaymentMethod
    include BaseModule

    attr_reader :customer_id
    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

29 entries across 29 versions & 1 rubygems

Version Path
braintree-2.89.0 lib/braintree/unknown_payment_method.rb
braintree-2.88.0 lib/braintree/unknown_payment_method.rb
braintree-2.87.0 lib/braintree/unknown_payment_method.rb
braintree-2.86.0 lib/braintree/unknown_payment_method.rb
braintree-2.85.0 lib/braintree/unknown_payment_method.rb
braintree-2.84.0 lib/braintree/unknown_payment_method.rb
braintree-2.83.0 lib/braintree/unknown_payment_method.rb
braintree-2.82.0 lib/braintree/unknown_payment_method.rb
braintree-2.81.0 lib/braintree/unknown_payment_method.rb