Class: SknUtils::CommandFORMDelete

Inherits:
Object
  • Object
show all
Defined in:
lib/skn_utils/job_commands.rb

Overview

#################################################

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(options) ⇒ Object

full_url:,username:,userpass:



171
172
173
# File 'lib/skn_utils/job_commands.rb', line 171

def self.call(options)  # {full_url:,username:,userpass:}
  new(options)
end

Instance Method Details

#json?Boolean

Returns:

  • (Boolean)


175
176
177
# File 'lib/skn_utils/job_commands.rb', line 175

def json?
  false
end

#requestObject



183
184
185
186
187
# File 'lib/skn_utils/job_commands.rb', line 183

def request
  req = Net::HTTP::Delete.new(uri.request_uri)
  req.basic_auth(@_username, @_userpass) if credentials?
  req
end

#uriObject



179
180
181
# File 'lib/skn_utils/job_commands.rb', line 179

def uri
  @_uri
end