Class: Digicert::Request

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

Instance Method Summary collapse

Constructor Details

#initialize(http_method, end_point, params: {}, **attributes) ⇒ Request

Returns a new instance of Request.



11
12
13
14
15
16
# File 'lib/digicert/request.rb', line 11

def initialize(http_method, end_point, params: {}, **attributes)
  @end_point = end_point
  @http_method = http_method
  @attributes = attributes
  @query_params = params
end

Instance Method Details

#parseObject



22
23
24
# File 'lib/digicert/request.rb', line 22

def parse
  Digicert::Response.new(run).parse
end

#runObject



18
19
20
# File 'lib/digicert/request.rb', line 18

def run
  valid_response || raise_response_error
end