Sha256: f5b28cb57683a70b5ec2467e08c82fc0452581825d41350e0b8c158d5c3e624d

Contents?: true

Size: 524 Bytes

Versions: 8

Compression:

Stored size: 524 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)
      self.new(*args)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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