Sha256: e845b9aad264eb072a3a5b1c86eaa099e3a0b646db7982ea20943d40f7ae6320
Contents?: true
Size: 571 Bytes
Versions: 18
Compression:
Stored size: 571 Bytes
Contents
# An BasePresenter for ResponseCodes class Lurker::ResponseCodePresenter < Lurker::BasePresenter 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 response_code["description"] end end
Version data entries
18 entries across 18 versions & 1 rubygems