Class: Setka::Workflow::Request
- Inherits:
-
Object
- Object
- Setka::Workflow::Request
- Defined in:
- lib/setka/workflow/request.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(http_verb, uri, body, options) ⇒ Request
constructor
A new instance of Request.
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, ) @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 = end |