Class: Nervion::Post

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
lib/nervion/request.rb

Instance Attribute Summary

Attributes included from Request

#oauth_params, #params

Instance Method Summary collapse

Methods included from Request

#host, #initialize, #path, #port, #uri

Instance Method Details

#http_methodObject



74
75
76
# File 'lib/nervion/request.rb', line 74

def http_method
  'POST'
end

#to_sObject



70
71
72
# File 'lib/nervion/request.rb', line 70

def to_s
  "#{request_line}\r\n#{headers.join("\r\n")}\r\n\r\n#{body}\r\n"
end