Class: Callapi::Call::Request::Api

Inherits:
Http
  • Object
show all
Defined in:
lib/callapi/call/request/api.rb

Constant Summary

Constants inherited from Http

Http::HTTP_METHOD_TO_REQUEST_CLASS

Instance Method Summary collapse

Methods inherited from Http

#response

Methods included from Http::LogHelper

#with_logging

Methods inherited from Base

#initialize, #response

Constructor Details

This class inherits a constructor from Callapi::Call::Request::Base

Instance Method Details

#api_path_prefixObject



6
7
8
# File 'lib/callapi/call/request/api.rb', line 6

def api_path_prefix
  Callapi::Config.api_path_prefix
end

#hostObject



2
3
4
# File 'lib/callapi/call/request/api.rb', line 2

def host
  Callapi::Config.api_host || raise(Callapi::ApiHostNotSetError)
end