Class: Crowbar::Client::Request::Batch::Build
- Inherits:
-
Crowbar::Client::Request::Base
- Object
- Crowbar::Client::Request::Base
- Crowbar::Client::Request::Batch::Build
- Defined in:
- lib/crowbar/client/request/batch/build.rb
Overview
Implementation for the batch build request
Instance Attribute Summary
Attributes inherited from Crowbar::Client::Request::Base
Instance Method Summary collapse
- #content ⇒ Object
-
#method ⇒ Symbol
HTTP method that gets used by the request.
-
#url ⇒ String
Path to the API endpoint for the request.
Methods inherited from Crowbar::Client::Request::Base
#headers, #initialize, #params, #process
Constructor Details
This class inherits a constructor from Crowbar::Client::Request::Base
Instance Method Details
#content ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/crowbar/client/request/batch/build.rb', line 27 def content super.easy_merge!( query: { includes: attrs.includes, excludes: attrs.excludes, file: attrs.file } ) end |
#method ⇒ Symbol
HTTP method that gets used by the request
42 43 44 |
# File 'lib/crowbar/client/request/batch/build.rb', line 42 def method :post end |
#url ⇒ String
Path to the API endpoint for the request
51 52 53 54 55 56 57 |
# File 'lib/crowbar/client/request/batch/build.rb', line 51 def url [ "utils", "batch", "build" ].join("/") end |