Method: Morpheus::LibraryOperatingSystemsInterface#get

Defined in:
lib/morpheus/api/library_operating_systems_interface.rb

#get(id, params = {}) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/morpheus/api/library_operating_systems_interface.rb', line 13

def get(id, params={})
  raise "#{self.class}.get() passed a blank id!" if id.to_s == ''
  url = "#{@base_url}/api/library/operating-systems/os-types/#{id}"
  headers = { params: params, authorization: "Bearer #{@access_token}" }
  opts = {method: :get, url: url, headers: headers}
  execute(opts)
end