Class: BitClust::Screen

Inherits:
Object show all
Defined in:
lib/bitclust/requesthandler.rb,
lib/bitclust/screen.rb

Overview

reopen

Direct Known Subclasses

ErrorScreen, NotFoundScreen, TemplateScreen

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.for_entry(entry) ⇒ Object


190
191
192
193
# File 'lib/bitclust/screen.rb', line 190

def Screen.for_entry(entry)
  ent = entry.kind_of?(Array) ? entry.first : entry
  ::BitClust.const_get("#{ent.type_id.to_s.capitalize}Screen")
end

Instance Method Details

#responseObject


298
299
300
# File 'lib/bitclust/requesthandler.rb', line 298

def response
  Response.new(self)
end

#statusObject


195
196
197
# File 'lib/bitclust/screen.rb', line 195

def status
  nil
end