class ApiProxy::Config
Attributes
api_key[RW]
api_secret[RW]
api_url[RW]
custom_headers[RW]
reject_params[RW]
request_allowed[RW]
request_starts_with[RW]
Public Class Methods
new()
click to toggle source
# File lib/api_proxy/config.rb, line 13 def initialize load_defaults end
Private Instance Methods
load_defaults()
click to toggle source
# File lib/api_proxy/config.rb, line 19 def load_defaults @api_key = 'key' @api_secret = 'secret' @api_url = 'http://localhost:3000/api/v1' @request_starts_with = '/_ts' @request_allowed = ->(_env) { true } @custom_headers = ->(_env) { {} } @reject_params = %w[utf8 authenticity_token commit format controller action] end