Class: Apical::FormContentType

Inherits:
ContentType show all
Defined in:
lib/apical/content_types.rb

Overview

TODO: Actually encode/decode urlencoded params

Instance Method Summary collapse

Methods inherited from ContentType

[], format

Instance Method Details

#generate(str) ⇒ Object



49
50
51
# File 'lib/apical/content_types.rb', line 49

def generate(str)
  str
end

#headerObject



45
46
47
# File 'lib/apical/content_types.rb', line 45

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

#parse(obj) ⇒ Object



53
54
55
# File 'lib/apical/content_types.rb', line 53

def parse(obj)
  obj
end

#to_sObject



57
58
59
# File 'lib/apical/content_types.rb', line 57

def to_s
  'form'
end