Class: Credigy::Authorized

Inherits:
Request
  • Object
show all
Defined in:
lib/credigy/authorized.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#basic_config, #call, #client, #config_options, #extra_config_options, #message, #operation, #response, #response_class, #wsdl

Constructor Details

#initialize(authorization_token) ⇒ Authorized

Returns a new instance of Authorized.



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

def initialize(authorization_token)
  @authorization_token = authorization_token
end

Instance Attribute Details

#authorization_tokenObject (readonly)

Returns the value of attribute authorization_token.



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

def authorization_token
  @authorization_token
end

Instance Method Details

#soap_headerObject



11
12
13
# File 'lib/credigy/authorized.rb', line 11

def soap_header
  { 'cred:AuthenticationToken' => { 'cred:Token' => authorization_token } }
end