Class: Credigy::Line

Inherits:
Authorized show all
Defined in:
lib/credigy/line.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, **params) ⇒ Line

Returns a new instance of Line.



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

def initialize(authorization_token, **params)
  @authorization_token = authorization_token
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



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

def params
  @params
end

Instance Method Details

#messageObject



17
18
19
20
21
22
# File 'lib/credigy/line.rb', line 17

def message
  {
    'cred:debtorAgreementID' => params[:debtor_agreement_id],
    'cred:installmentNumber' => params[:installment_number]
  }
end

#operationObject



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

def operation
  :get_linha_digitavel
end