Class: Fasta::Server::Actions::Show
- Inherits:
-
Core::Read
- Object
- Core::Responder
- Core::Read
- Fasta::Server::Actions::Show
- Defined in:
- lib/fasta/server/actions/show.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Core::Responder
Instance Attribute Summary
Attributes inherited from Core::Responder
Instance Method Summary collapse
Methods inherited from Core::Read
Methods inherited from Core::Responder
#body, call, #call, #db_table, #db_table_name, #initialize, #response_code, #to_rack_array, validate_fields
Constructor Details
This class inherits a constructor from Fasta::Server::Core::Responder
Instance Method Details
#fetch ⇒ Object
7 8 9 10 |
# File 'lib/fasta/server/actions/show.rb', line 7 def fetch @response_code = 404 unless instance = db_table.first(id: params[:id]) instance end |