class R2OAS::AppConfiguration::Swagger::Editor

Constants

DEFAULT_EXPOSED_PORT
DEFAULT_HOST
DEFAULT_IMAGE
DEFAULT_PORT
DEFAULT_STORAGE_KEY
VALID_OPTIONS_KEYS

Public Class Methods

new() click to toggle source
# File lib/r2-oas/app_configuration/swagger/editor.rb, line 21
def initialize
  set_default
end

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/r2-oas/app_configuration/swagger/editor.rb, line 25
def configure
  yield self
end
storage_key() click to toggle source
# File lib/r2-oas/app_configuration/swagger/editor.rb, line 33
def storage_key
  DEFAULT_STORAGE_KEY
end
url() click to toggle source
# File lib/r2-oas/app_configuration/swagger/editor.rb, line 29
def url
  "#{DEFAULT_HOST}:#{port}"
end

Private Instance Methods

set_default() click to toggle source
# File lib/r2-oas/app_configuration/swagger/editor.rb, line 39
def set_default
  self.image         = DEFAULT_IMAGE
  self.port          = DEFAULT_PORT
  self.exposed_port  = DEFAULT_EXPOSED_PORT
end