Class: ButterCMS::Requests::Get
- Inherits:
-
Object
- Object
- ButterCMS::Requests::Get
- Defined in:
- lib/butter_cms/requests/get.rb
Class Method Summary collapse
-
.call(path, options = {}) ⇒ RestClient::Response
Returns response from the request to the given API endpoint.
Class Method Details
.call(path, options = {}) ⇒ RestClient::Response
Returns response from the request to the given API endpoint
10 11 12 13 14 15 16 17 18 |
# File 'lib/butter_cms/requests/get.rb', line 10 def self.call(path, = {}) full_url = [ ::ButterCMS::Requests::API::URL, path, ::ButterCMS::UrlParamsService.call() ].join ::RestClient.get(full_url) end |