Class: Credigy::CampaignNegotiation
- Inherits:
-
Authorized
- Object
- Request
- Authorized
- Credigy::CampaignNegotiation
- Defined in:
- lib/credigy/campaign_negotiation.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from Authorized
Instance Method Summary collapse
-
#initialize(authorization_token, **params) ⇒ CampaignNegotiation
constructor
A new instance of CampaignNegotiation.
- #message ⇒ Object
- #operation ⇒ Object
Methods inherited from Authorized
Methods inherited from Request
#basic_config, #call, #client, #config_options, #extra_config_options, #response, #response_class, #soap_header, #wsdl
Constructor Details
#initialize(authorization_token, **params) ⇒ CampaignNegotiation
Returns a new instance of CampaignNegotiation.
8 9 10 |
# File 'lib/credigy/campaign_negotiation.rb', line 8 def initialize(, **params) @authorization_token, @params = , params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/credigy/campaign_negotiation.rb', line 6 def params @params end |
Instance Method Details
#message ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/credigy/campaign_negotiation.rb', line 16 def { 'cred:Ownerid' => params[:owner_id], 'cred:Accounts' => Array.wrap(params[:accounts]).join(';'), 'cred:Providers' => Array.wrap(params[:provider_ids]).join(';') } end |
#operation ⇒ Object
12 13 14 |
# File 'lib/credigy/campaign_negotiation.rb', line 12 def operation :get_campaign_negotiation end |