Sha256: 8ada5d297f5594d7f21eebdcd56665e194c4b79468ea8267092cddb61640a49e

Contents?: true

Size: 888 Bytes

Versions: 1

Compression:

Stored size: 888 Bytes

Contents

module SwaggerYard
  class Configuration
    attr_accessor :api_version, :api_base_path
    attr_accessor :swagger_version
    attr_accessor :title, :description
    attr_accessor :enable, :reload
    attr_accessor :controller_path, :model_path
    attr_accessor :path_discovery_function
    attr_accessor :security_definitions

    def initialize
      self.swagger_version = "2.0"
      self.api_version = "0.1"
      self.enable = false
      self.reload = true
      self.title = "Configure title with SwaggerYard.config.title"
      self.description = "Configure description with SwaggerYard.config.description"
      self.security_definitions = {}
    end

    def swagger_spec_base_path=(ignored)
      warn "DEPRECATED: swagger_spec_base_path is no longer necessary."
    end

    def api_path=(ignored)
      warn "DEPRECATED: api_path is no longer necessary."
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
swagger_yard-0.3.7 lib/swagger_yard/configuration.rb