Class: PayPal::SDK::Core::Credential::ThirdParty::Subject

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal-sdk/core/credential/third_party/subject.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credential, config) ⇒ Subject

Initialize configuration

Arguments

  • credential – Credential object

  • config – Configuration object



12
13
14
15
# File 'lib/paypal-sdk/core/credential/third_party/subject.rb', line 12

def initialize(credential, config)
  @credential   = credential
  @subject      = config.subject
end

Instance Attribute Details

#credentialObject

Returns the value of attribute credential.



6
7
8
# File 'lib/paypal-sdk/core/credential/third_party/subject.rb', line 6

def credential
  @credential
end

#subjectObject

Returns the value of attribute subject.



6
7
8
# File 'lib/paypal-sdk/core/credential/third_party/subject.rb', line 6

def subject
  @subject
end

Instance Method Details

#propertiesObject

Return properties for authentication.



18
19
20
# File 'lib/paypal-sdk/core/credential/third_party/subject.rb', line 18

def properties
  credential.properties.merge( :subject => subject )
end