Class: Credigy::AgreementExceptionStatus

Inherits:
Authorized show all
Defined in:
lib/credigy/agreement_exception_status.rb

Instance Attribute Summary collapse

Attributes inherited from Authorized

#authorization_token

Instance Method Summary collapse

Methods inherited from Authorized

#soap_header

Methods inherited from Request

#basic_config, #call, #client, #config_options, #extra_config_options, #response, #response_class, #soap_header, #wsdl

Constructor Details

#initialize(authorization_token, agreement_id:) ⇒ AgreementExceptionStatus

Returns a new instance of AgreementExceptionStatus.



8
9
10
# File 'lib/credigy/agreement_exception_status.rb', line 8

def initialize(authorization_token, agreement_id:)
  @authorization_token, @agreement_id = authorization_token, agreement_id
end

Instance Attribute Details

#agreement_idObject (readonly)

Returns the value of attribute agreement_id.



6
7
8
# File 'lib/credigy/agreement_exception_status.rb', line 6

def agreement_id
  @agreement_id
end

Instance Method Details

#messageObject



16
17
18
19
20
# File 'lib/credigy/agreement_exception_status.rb', line 16

def message
  {
    'cred:debtorAgreementID' => agreement_id
  }
end

#operationObject



12
13
14
# File 'lib/credigy/agreement_exception_status.rb', line 12

def operation
  :get_exception_status
end