Class: Braintree::ApplePay

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/apple_pay.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(gateway, attributes) ⇒ ApplePay

:nodoc:


5
6
7
# File 'lib/braintree/apple_pay.rb', line 5

def initialize(gateway, attributes) # :nodoc:
  set_instance_variables_from_hash(attributes)
end

Class Method Details

._new(*args) ⇒ Object

:nodoc:


13
14
15
# File 'lib/braintree/apple_pay.rb', line 13

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

.register_domain(domain) ⇒ Object


17
18
19
# File 'lib/braintree/apple_pay.rb', line 17

def self.register_domain(domain)
  Configuration.gateway.apple_pay.register_domain(domain)
end

.registered_domainsObject


25
26
27
# File 'lib/braintree/apple_pay.rb', line 25

def self.registered_domains
  Configuration.gateway.apple_pay.registered_domains
end

.unregister_domain(domain) ⇒ Object


21
22
23
# File 'lib/braintree/apple_pay.rb', line 21

def self.unregister_domain(domain)
  Configuration.gateway.apple_pay.unregister_domain(domain)
end