Method: Ari::Endpoint.listByTech
- Defined in:
- lib/ari/resources/endpoint.rb
.listByTech ⇒ Object
GET /endpoints/%tech
Asterisk endpoints
Parameters:
tech (required) - Technology of the endpoints (sip,iax2,…)
64 65 66 67 68 69 |
# File 'lib/ari/resources/endpoint.rb', line 64 def self.list_by_tech( = {}) raise ArgumentError.new("Parameter tech must be passed in options hash.") unless [:tech] path = '/endpoints/%{tech}' % response = client().get(path, ) response.map { |hash| Endpoint.new(hash.merge(client: [:client])) } end |