Method: Arrow::Transaction#status_doc
- Defined in:
- lib/arrow/transaction.rb
#status_doc(status_code, uri = nil) ⇒ Object
Return a minimal HTML doc for representing a given status_code
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 |
# File 'lib/arrow/transaction.rb', line 488 def status_doc( status_code, uri=nil ) body = '' if uri body = %q{<a href="%s">%s</a>} % [ uri, uri ] end #<head><title>%d %s</title></head> #<body><h1>%s</h1><p>%s</p></body> return HTML_DOC % [ status_code, STATUS_NAME[status_code], STATUS_NAME[status_code], body ] end |