Class: Credigy::Line
- Inherits:
-
Authorized
- Object
- Request
- Authorized
- Credigy::Line
- Defined in:
- lib/credigy/line.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) ⇒ Line
constructor
A new instance of Line.
- #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) ⇒ Line
Returns a new instance of Line.
8 9 10 11 |
# File 'lib/credigy/line.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/line.rb', line 6 def params @params end |
Instance Method Details
#message ⇒ Object
17 18 19 20 21 22 |
# File 'lib/credigy/line.rb', line 17 def { 'cred:debtorAgreementID' => params[:debtor_agreement_id], 'cred:installmentNumber' => params[:installment_number] } end |
#operation ⇒ Object
13 14 15 |
# File 'lib/credigy/line.rb', line 13 def operation :get_linha_digitavel end |