class TotalVoice::Webphone

Inicializa o HTTP client

Constants

ROTA_WEBPHONE

Attributes

client[R]

Public Class Methods

new(client) click to toggle source
# File lib/api/webphone.rb, line 10
def initialize(client)
  @client = client
end

Public Instance Methods

url(data) click to toggle source

Requisita a URL do webphone de um ramal

@param [Hash] data @return [json]

# File lib/api/webphone.rb, line 20
def url(data)
  @client.get(Route.new([ROTA_WEBPHONE]), Query.new(data))
end