Exception: Yt::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Yt::RequestError
- Defined in:
- lib/yt/actions/request_error.rb
Instance Method Summary collapse
Instance Method Details
#error ⇒ Object
7 8 9 |
# File 'lib/yt/actions/request_error.rb', line 7 def error eval()['error'] rescue {} end |
#reasons ⇒ Object
3 4 5 |
# File 'lib/yt/actions/request_error.rb', line 3 def reasons error.fetch('errors', []).map{|e| e['reason']} end |