Class: TestdroidAPI::Service

Inherits:
CloudResource show all
Defined in:
lib/testdroid_api/services.rb

Instance Method Summary collapse

Methods inherited from CloudResource

#camel_case_it, #delete, #download_file, #inspect, #method_missing, #refresh, #set_up_properties_from, #snake_case_it, #sub_items, #update

Constructor Details

#initialize(uri, client, params = {}) ⇒ Service

Returns a new instance of Service.



5
6
7
# File 'lib/testdroid_api/services.rb', line 5

def initialize(uri, client, params = {})
  super uri, client, "service", params
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TestdroidAPI::CloudResource

Instance Method Details

#get_availableObject



9
10
11
# File 'lib/testdroid_api/services.rb', line 9

def get_available
  @client.get("#{@uri}/available")
end

#get_purchasedObject



13
14
15
# File 'lib/testdroid_api/services.rb', line 13

def get_purchased
  @client.get("#{@uri}/purchased")
end