Module: RequestHandler

Defined in:
lib/request_handler.rb,
lib/request_handler/base.rb,
lib/request_handler/error.rb,
lib/request_handler/helper.rb,
lib/request_handler/version.rb,
lib/request_handler/body_parser.rb,
lib/request_handler/page_parser.rb,
lib/request_handler/sort_option.rb,
lib/request_handler/filter_parser.rb,
lib/request_handler/header_parser.rb,
lib/request_handler/option_parser.rb,
lib/request_handler/schema_parser.rb,
lib/request_handler/fieldsets_parser.rb,
lib/request_handler/sort_option_parser.rb,
lib/request_handler/include_option_parser.rb

Defined Under Namespace

Modules: Helper Classes: Base, BaseError, BodyParser, ExternalArgumentError, ExternalBaseError, FieldsetsParser, FilterParser, HeaderParser, IncludeOptionParser, InternalArgumentError, InternalBaseError, MissingArgumentError, NoConfigAvailableError, OptionNotAllowedError, OptionParser, PageParser, SchemaParser, SchemaValidationError, SortOption, SortOptionParser

Constant Summary collapse

VERSION =
'0.9.1'

Class Method Summary collapse

Class Method Details

.configurationObject



15
16
17
18
19
20
# File 'lib/request_handler.rb', line 15

def configuration
  @configuration ||= ::Confstruct::Configuration.new do
    logger Logger.new(STDOUT)
    separator '__'
  end
end

.configure(&block) ⇒ Object



11
12
13
# File 'lib/request_handler.rb', line 11

def configure(&block)
  configuration.configure(&block)
end

.separatorObject



22
23
24
# File 'lib/request_handler.rb', line 22

def separator
  configuration.separator
end