Class: Apical::PostResource
- Defined in:
- lib/apical/resource_types.rb
Constant Summary
Constants inherited from Resource
Instance Attribute Summary
Attributes inherited from Resource
#accept, #after_blocks, #before_blocks, #content_type, #custom_headers, #desc, #method, #params, #path
Instance Method Summary collapse
-
#initialize(runner, path, &block) ⇒ PostResource
constructor
A new instance of PostResource.
Methods inherited from Resource
#accept_header, #auth_header, #call_if_proc, #content_type_header, #custom_header, #filtered_params, #formatted_params, #formatted_response, #interpolated_path, #make_request, #path_captures, #response_body, #run
Constructor Details
#initialize(runner, path, &block) ⇒ PostResource
Returns a new instance of PostResource.
3 4 5 6 |
# File 'lib/apical/resource_types.rb', line 3 def initialize(runner, path, &block) super runner, path, &block @method = 'POST' end |