Class: Vigor::Error
- Inherits:
-
Object
- Object
- Vigor::Error
- Defined in:
- lib/vigor/error.rb
Defined Under Namespace
Classes: ApiError, BadRequest, InternalServerError, InvalidRegion, NotConfigured, SummonerNotFound, Unauthorized
Class Method Summary collapse
Class Method Details
.from_status(status) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vigor/error.rb', line 4 def self.from_status(status) case status when 400 BadRequest when 401 when 404 SummonerNotFound when 500 InternalServerError else ApiError end end |