class Octonore::HTTPHelper
Constants
- USER_AGENT
Public Instance Methods
get(location)
click to toggle source
Get the specified template’s hash from Github. @param location [String] location of resource to get @return [Hash] whatever is gotten
# File lib/octonore/http_helper.rb, line 16 def get(location) self.class.get location, headers: headers end
headers()
click to toggle source
# File lib/octonore/http_helper.rb, line 20 def headers {"User-Agent" => USER_AGENT} end