class ButterCMS::UrlParamsService

Public Class Methods

call(options = {}) click to toggle source

Returns the query part of the request to the API

@return [String]

# File lib/butter_cms/url_params_service.rb, line 7
def self.call(options = {})
  options[:auth_token] = ButterCMS.configuration.api_key

  "?" << options.map { |(key, value)| "#{key.to_s}=#{value}" }.join("&")
end