Sha256: 462805f8d41fc5c7ac87703b837c6ec271ff78c36f239025eccca939aea8b2a5
Contents?: true
Size: 583 Bytes
Versions: 8
Compression:
Stored size: 583 Bytes
Contents
# An HtmlPresenter for ResponseCodes class Fdoc::ResponseCodePresenter < Fdoc::HtmlPresenter attr_reader :response_code def initialize(response_code, options) super(options) @response_code = response_code end def to_html <<-EOS <div class="response-code"> <span class="status"> #{status} </span> #{description} </div> EOS end def successful? response_code["successful"] end def status response_code["status"] end def description render_markdown(response_code["description"]) end end
Version data entries
8 entries across 8 versions & 1 rubygems