Sha256: 0f977eda6b8ef86fe6368b23a0176a0c2f7a7069b35d624bdc0d3b0dfd42be91
Contents?: true
Size: 701 Bytes
Versions: 5
Compression:
Stored size: 701 Bytes
Contents
# frozen_string_literal: true module ApiProxy class Config attr_accessor :api_key, :api_secret, :api_url, :request_starts_with, :request_allowed, :custom_headers, :reject_params def initialize load_defaults end private 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems