Module: FileSv

Defined in:
lib/file_sv.rb,
lib/file_sv/version.rb

Overview

Create Service Virtualization from a simple file system

Defined Under Namespace

Classes: Error, FileNameError

Constant Summary collapse

LOGLEVELS =
%w[DEBUG INFO WARN ERROR FATAL UNKNOWN].freeze
VERSION =
"0.3.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.log_typeObject

Returns Logger type.

Returns:

  • Logger type



47
48
49
# File 'lib/file_sv.rb', line 47

def log_type
  @log_type
end

.loggerLogger

Returns Logger.

Returns:

  • (Logger)

    Logger



44
45
46
# File 'lib/file_sv.rb', line 44

def logger
  @logger
end

Class Method Details

.rest_methodsHash

Returns Mapping of REST method names to setting classes.

Returns:

  • (Hash)

    Mapping of REST method names to setting classes



36
37
38
39
40
41
# File 'lib/file_sv.rb', line 36

def rest_methods
  {
    get: GetSettings, post: PostSettings, patch: PatchSettings, options: OptionsSettings,
    delete: DeleteSettings, put: PutSettings
  }
end