Sha256: c0a937eacba9aa56286b0af73f51e262df335f5bf292cbb1b6094d8a65cf4b6a
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
# frozen_string_literal: true module Rpdoc class Configuration attr_reader \ :postman_host, :postman_collection_endpoint, :collection_schema attr_accessor \ :rpdoc_enable, :postman_apikey, :collection_workspace, :collection_uid, :collection_name, :rspec_server_host, :rspec_request_allow_headers, :rpdoc_root, :rpdoc_request_filename, :rpdoc_description_filename, :rpdoc_collection_filename, :rpdoc_auto_push, :rpdoc_auto_push_strategy def initialize @rpdoc_enable = true @postman_host = 'https://api.getpostman.com' @postman_collection_endpoint = "#{@postman_host}/collections" @postman_apikey = nil @collection_workspace = nil @collection_uid = nil @collection_name = 'Rpdoc' @collection_schema = 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json' @rspec_server_host = '{{server_host}}' @rspec_request_allow_headers = ['User-Agent', 'Content-Type', 'Authorization'] @rpdoc_root = 'rpdoc' @rpdoc_request_filename = 'request.json' @rpdoc_description_filename = 'description.md' @rpdoc_collection_filename = 'collection.json' @rpdoc_auto_push = false @rpdoc_auto_push_strategy = :push_and_create # or :push_and_update end def valid? @rpdoc_enable && @rpdoc_auto_push ? !@postman_apikey.nil? : true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rpdoc-0.1.1 | lib/rpdoc/configuration.rb |