Class: AkamaiCloudletManager::Origin

Inherits:
Base
  • Object
show all
Defined in:
lib/akamai_cloudlet_manager/origin.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from AkamaiCloudletManager::Base

Instance Method Details

#list(type) ⇒ Object

List cloudlet Origins



5
6
7
8
9
# File 'lib/akamai_cloudlet_manager/origin.rb', line 5

def list(type)
  request  = Net::HTTP::Get.new URI.join(@base_uri.to_s, "cloudlets/api/v2/origins?type=#{type}").to_s
  response = @http_host.request(request)
  response.body
end