Class: Nestful::Formats::FormFormat

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

Instance Method Summary collapse

Instance Method Details

#decode(body) ⇒ Object



12
13
14
# File 'lib/nestful/formats/form_format.rb', line 12

def decode(body)
  body
end

#encode(params, options = nil) ⇒ Object



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

def encode(params, options = nil)
  Helpers.to_param(params)
end

#mime_typeObject



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

def mime_type
  'application/x-www-form-urlencoded'
end