Class: Setka::Workflow::Request

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

Instance Method Summary collapse

Constructor Details

#initialize(http_verb, uri, body, options) ⇒ Request

Returns a new instance of Request.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/setka/workflow/request.rb', line 7

def initialize(http_verb, uri, body, options)
  @http_verb = http_verb
  @uri = uri

  if body
    raise WrongParamError.new('Body param must be a hash') unless
      body.is_a?(Hash)

    @body = body
  end

  @options = options
end

Instance Method Details

#executeObject



21
22
23
# File 'lib/setka/workflow/request.rb', line 21

def execute
  Response.new(execute_core)
end