class Urushiol::Txresp

Public Class Methods

new() click to toggle source
# File lib/txresp.rb, line 4
def initialize
  @resp = "\ntxresp"
end

Public Instance Methods

body(body) click to toggle source
# File lib/txresp.rb, line 24
def body(body)
  @resp << " -body \"#{body}\""
end
get_source() click to toggle source
# File lib/txresp.rb, line 28
def get_source
  @resp
end
header(hdr) click to toggle source
# File lib/txresp.rb, line 20
def header(hdr)
  @resp << " -hdr \"#{hdr}\""
end
message(msg) click to toggle source
# File lib/txresp.rb, line 8
def message(msg)
  @resp << " -msg #{msg}"
end
protocol(proto) click to toggle source
# File lib/txresp.rb, line 12
def protocol(proto)
  @resp << " -proto #{proto}"
end
status_code(status) click to toggle source
# File lib/txresp.rb, line 16
def status_code(status)
  @resp << " -status #{status}"
end