Class: ButterCMS::UrlParamsService
- Inherits:
-
Object
- Object
- ButterCMS::UrlParamsService
- Defined in:
- lib/butter_cms/url_params_service.rb
Class Method Summary collapse
-
.call(options = {}) ⇒ String
Returns the query part of the request to the API.
Class Method Details
.call(options = {}) ⇒ String
Returns the query part of the request to the API
7 8 9 10 11 |
# File 'lib/butter_cms/url_params_service.rb', line 7 def self.call( = {}) [:auth_token] = ButterCMS.configuration.api_key "?" << .map { |(key, value)| "#{key.to_s}=#{value}" }.join("&") end |