Class: GlobalSign::Request
- Inherits:
-
Object
- Object
- GlobalSign::Request
show all
- Defined in:
- lib/global_sign/request.rb
Instance Method Summary
collapse
Instance Method Details
#auth_token_hash ⇒ Object
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_params ⇒ Object
10
11
12
|
# File 'lib/global_sign/request.rb', line 10
def auth_token_params
{ "#{request_header}": auth_token_hash }
end
|
#to_xml ⇒ Object
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
|