Sha256: 2e8a38a0bc7f11e960422e5578ffdc712fc3d5f6d72716d7660851763466cd3b

Contents?: true

Size: 405 Bytes

Versions: 6

Compression:

Stored size: 405 Bytes

Contents

module Braintree
  class UnknownPaymentMethod
    include BaseModule

    attr_reader :token

    def initialize(attributes)
      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
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
braintree-2.35.0 lib/braintree/unknown_payment_method.rb
braintree-2.34.1 lib/braintree/unknown_payment_method.rb
braintree-2.34.0 lib/braintree/unknown_payment_method.rb
braintree-2.33.1 lib/braintree/unknown_payment_method.rb
braintree-2.33.0 lib/braintree/unknown_payment_method.rb
braintree-2.32.1 lib/braintree/unknown_payment_method.rb