class BaseApi::Default
Public Class Methods
access_token()
click to toggle source
# File lib/base_api/default.rb, line 24 def access_token ENV['BASE_API_ACCESS_TOKEN'] end
client_id()
click to toggle source
# File lib/base_api/default.rb, line 12 def client_id ENV['BASE_API_CLIENT_ID'] end
client_secret()
click to toggle source
# File lib/base_api/default.rb, line 16 def client_secret ENV['BASE_API_CLIENT_SECRET'] end
code()
click to toggle source
# File lib/base_api/default.rb, line 20 def code ENV['BASE_API_CODE'] end
limit()
click to toggle source
# File lib/base_api/default.rb, line 32 def limit ENV.fetch("BASE_API_LIMIT") { 20 } end
offset()
click to toggle source
# File lib/base_api/default.rb, line 36 def offset ENV.fetch("BASE_API_OFFSET") { 0 } end
options()
click to toggle source
Configuration options @return [Hash]
# File lib/base_api/default.rb, line 8 def options Hash[BaseApi::Configurable.keys.map{|key| [key, send(key)]}] end
redirect_uri()
click to toggle source
# File lib/base_api/default.rb, line 40 def redirect_uri ENV['BASE_API_REDIRECT_URI'] end
refresh_token()
click to toggle source
# File lib/base_api/default.rb, line 28 def refresh_token ENV['BASE_API_REFRESH_TOKEN'] end