Class: Bitrix24CloudApi::Base
- Inherits:
-
Object
- Object
- Bitrix24CloudApi::Base
- Extended by:
- Forwardable
- Defined in:
- lib/bitrix24_cloud_api/base.rb
Class Method Summary collapse
Class Method Details
.resource_path ⇒ Object
15 16 17 |
# File 'lib/bitrix24_cloud_api/base.rb', line 15 def resource_path name.gsub("Bitrix24CloudApi::", "").gsub("::", ".").downcase end |
.resource_url(client, action) ⇒ Object
11 12 13 |
# File 'lib/bitrix24_cloud_api/base.rb', line 11 def resource_url(client, action) "#{client.api_endpoint + resource_path}.#{action}.#{client.extension}" end |