Class: SknUtils::CommandJSONGet
Overview
#################################################
Class Method Summary collapse
-
.call(options) ⇒ Object
full_url:,username:,userpass:.
Instance Method Summary collapse
Class Method Details
.call(options) ⇒ Object
full_url:,username:,userpass:
94 95 96 |
# File 'lib/skn_utils/job_commands.rb', line 94 def self.call() # {full_url:,username:,userpass:} new() end |
Instance Method Details
#json? ⇒ Boolean
98 99 100 |
# File 'lib/skn_utils/job_commands.rb', line 98 def json? true end |
#request ⇒ Object
106 107 108 109 110 |
# File 'lib/skn_utils/job_commands.rb', line 106 def request req = Net::HTTP::Get.new(uri.request_uri) req.basic_auth(@_username, @_userpass) if credentials? req end |
#uri ⇒ Object
102 103 104 |
# File 'lib/skn_utils/job_commands.rb', line 102 def uri @_uri end |