module Bestgems
Constants
- API_HOST
- API_VERSION
- VERSION
Public Class Methods
api_gems_endpoint()
click to toggle source
# File lib/bestgems.rb, line 17 def api_gems_endpoint File.join(api_host, api_version, 'gems') end
api_host()
click to toggle source
# File lib/bestgems.rb, line 9 def api_host ENV['BESTGEMS_API_HOST'] || API_HOST end
api_version()
click to toggle source
# File lib/bestgems.rb, line 13 def api_version ENV['BESTGEMS_API_VERSION'] || API_VERSION end
client()
click to toggle source
# File lib/bestgems.rb, line 21 def client @client ||= Client.new end