Class: GlobalSign::CsrDecoder::Request

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

Instance Method Summary collapse

Methods inherited from Request

#auth_token_hash, #auth_token_params, #to_xml

Constructor Details

#initialize(csr:, product_type:) ⇒ Request

Returns a new instance of Request.



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

def initialize(csr:, product_type:)
  @csr          = csr
  @product_type = product_type
end

Instance Method Details

#actionObject



13
14
15
# File 'lib/global_sign/csr_decoder/request.rb', line 13

def action
  'DecodeCSR'
end

#paramsObject



21
22
23
24
25
26
# File 'lib/global_sign/csr_decoder/request.rb', line 21

def params
  {
    CSR:         @csr,
    ProductType: @product_type
  }
end

#pathObject



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

def path
  'GASService'
end

#request_headerObject



17
18
19
# File 'lib/global_sign/csr_decoder/request.rb', line 17

def request_header
  :QueryRequestHeader
end