Method: Ari::Endpoint.listByTech

Defined in:
lib/ari/resources/endpoint.rb

.listByTechObject

GET /endpoints/%tech

Asterisk endpoints

Parameters:

tech (required) - Technology of the endpoints (sip,iax2,…)

Raises:

  • (ArgumentError)


64
65
66
67
68
69
# File 'lib/ari/resources/endpoint.rb', line 64

def self.list_by_tech(options = {})
  raise ArgumentError.new("Parameter tech must be passed in options hash.") unless options[:tech]
  path = '/endpoints/%{tech}' % options
  response = client(options).get(path, options)
  response.map { |hash| Endpoint.new(hash.merge(client: options[:client])) }
end