Class: Crowbar::Client::Request::Proposal::Dequeue

Inherits:
Base
  • Object
show all
Defined in:
lib/crowbar/client/request/proposal/dequeue.rb

Overview

Implementation for the proposal dequeue request

Instance Attribute Summary

Attributes inherited from Base

#attrs, #request

Instance Method Summary collapse

Methods inherited from Base

#content, #headers, #initialize, #params, #process

Constructor Details

This class inherits a constructor from Crowbar::Client::Request::Base

Instance Method Details

#methodSymbol

HTTP method that gets used by the request

Returns:

  • (Symbol)

    the method for the request



30
31
32
# File 'lib/crowbar/client/request/proposal/dequeue.rb', line 30

def method
  :delete
end

#urlString

Path to the API endpoint for the request

Returns:

  • (String)

    path to the API endpoint



39
40
41
42
43
44
45
46
47
48
# File 'lib/crowbar/client/request/proposal/dequeue.rb', line 39

def url
  [
    "crowbar",
    attrs.barclamp,
    "1.0",
    "proposals",
    "dequeue",
    attrs.proposal
  ].join("/")
end