class ButterCMS::Requests::Get
Public Class Methods
call(path, options = {})
click to toggle source
Returns response from the request to the given API
endpoint
@return [RestClient::Response]
# File lib/butter_cms/requests/get.rb, line 10 def self.call(path, options = {}) full_url = [ ::ButterCMS::Requests::API::URL, path, ::ButterCMS::UrlParamsService.call(options) ].join ::RestClient.get(full_url) end