Method: Yt::Errors::RequestError#reasons

Defined in:
lib/yt/errors/request_error.rb

#reasonsObject



26
27
28
29
30
31
# File 'lib/yt/errors/request_error.rb', line 26

def reasons
  case kind
    when Hash then kind.fetch('errors', []).map{|e| e['reason']}
    else kind
  end
end