Class: Nestful::Formats::BlankFormat

Inherits:
Format
  • Object
show all
Defined in:
lib/nestful/formats/blank_format.rb

Instance Method Summary collapse

Methods inherited from Format

#extension, #mime_type

Instance Method Details

#decode(body) ⇒ Object



8
9
10
# File 'lib/nestful/formats/blank_format.rb', line 8

def decode(body)
  body
end

#encode(params, options = nil) ⇒ Object



4
5
6
# File 'lib/nestful/formats/blank_format.rb', line 4

def encode(params, options = nil)
  raise "Choose an encoding format, such as :form"	
end