Class: PayPal::SDK::Core::Credential::ThirdParty::Subject
- Inherits:
-
Object
- Object
- PayPal::SDK::Core::Credential::ThirdParty::Subject
- Defined in:
- lib/paypal-sdk/core/credential/third_party/subject.rb
Instance Attribute Summary collapse
-
#credential ⇒ Object
Returns the value of attribute credential.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(credential, config) ⇒ Subject
constructor
Initialize configuration === Arguments *
credential
– Credential object *config
– Configuration object. -
#properties ⇒ Object
Return properties for authentication.
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
#credential ⇒ Object
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 |
#subject ⇒ Object
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
#properties ⇒ Object
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 |