Module: HttpHelp
- Defined in:
- lib/http_help.rb,
lib/http_help/version.rb
Defined Under Namespace
Classes: StatusCodeNotFoundException, StatusNotFoundException
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.find(status) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/http_help.rb', line 9 def self.find status if status == "all" list_all_statuses elsif status.to_i > 0 find_by_code status.to_i else find_by_description status end end |