Method: Dnsimple::Client::Services#services

Defined in:
lib/dnsimple/client/services.rb

#services(options = {}) ⇒ Dnsimple::PaginatedResponse<Dnsimple::Struct::Service> Also known as: list, list_services

Lists the available one-click services.

Examples:

List one-click services:

client.services.list_services

Parameters:

  • options (Hash) (defaults to: {})

Returns:

Raises:

See Also:



16
17
18
19
20
21
# File 'lib/dnsimple/client/services.rb', line 16

def services(options = {})
  endpoint = Client.versioned("/services")
  response = client.get(endpoint, options)

  Dnsimple::PaginatedResponse.new(response, response["data"].map { |r| Struct::Service.new(r) })
end