Class: Crowbar::Client::Request::Batch::Build

Inherits:
Crowbar::Client::Request::Base show all
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

#attrs, #request

Instance Method Summary collapse

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

#contentObject



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

#methodSymbol

HTTP method that gets used by the request

Returns:

  • (Symbol)

    the method for the request



42
43
44
# File 'lib/crowbar/client/request/batch/build.rb', line 42

def method
  :post
end

#urlString

Path to the API endpoint for the request

Returns:

  • (String)

    path to the API endpoint



51
52
53
54
55
56
57
# File 'lib/crowbar/client/request/batch/build.rb', line 51

def url
  [
    "utils",
    "batch",
    "build"
  ].join("/")
end