class VtApi::ApiVersion
@abstract Base class for API interfaces.
Public Instance Methods
base_url()
click to toggle source
Get API base URL.
@return [String]
# File lib/vt_api/internal/api_version.rb, line 9 def base_url '' end
endpoint(_method)
click to toggle source
Get API method endpoint interface.
@param [String] _method API method name to be called. @return [VtApi::Endpoint]
# File lib/vt_api/internal/api_version.rb, line 40 def endpoint(_method) nil end
endpoint?(_method)
click to toggle source
Check whether given method is defined in interface.
@param [String] _method Method name. @return [Boolean]
# File lib/vt_api/internal/api_version.rb, line 48 def endpoint?(_method) false end
error(_http_code)
click to toggle source
Get API HTTP-code description.
@param [Integer] _http_code @return [String] Error description.
# File lib/vt_api/internal/api_version.rb, line 24 def error(_http_code) nil end
error?(_http_code)
click to toggle source
Check whether API HTTP-code means error.
@param [Integer] _http_code @return [Boolean] Error description.
# File lib/vt_api/internal/api_version.rb, line 32 def error?(_http_code) false end
version()
click to toggle source
API interface name/version.
@return [String]
# File lib/vt_api/internal/api_version.rb, line 16 def version nil end