Class: GlobalSign::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/global_sign/request.rb

Instance Method Summary collapse

Instance Method Details

#auth_token_hashObject



14
15
16
17
18
19
20
21
# File 'lib/global_sign/request.rb', line 14

def auth_token_hash
  {
    AuthToken: {
      UserName: GlobalSign.configuration.user_name,
      Password: GlobalSign.configuration.password,
    }
  }
end

#auth_token_paramsObject



10
11
12
# File 'lib/global_sign/request.rb', line 10

def auth_token_params
  { "#{request_header}": auth_token_hash }
end

#to_xmlObject



3
4
5
6
7
8
# File 'lib/global_sign/request.rb', line 3

def to_xml
  GlobalSign::RequestXmlBuilder.build_xml(
    action: action,
    params: auth_token_params.merge(params)
  )
end