Class: Lotus::Routing::Parsing::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/lotus/routing/parsing/parser.rb

Direct Known Subclasses

JsonParser

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.for(parser) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/lotus/routing/parsing/parser.rb', line 14

def self.for(parser)
  case parser
  when String, Symbol
    require_parser(parser)
  else
    parser
  end
end

Instance Method Details

#mime_typesObject

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/lotus/routing/parsing/parser.rb', line 23

def mime_types
  raise NotImplementedError
end

#parse(body) ⇒ Object



27
28
29
# File 'lib/lotus/routing/parsing/parser.rb', line 27

def parse(body)
  Hash.new
end