Exception: YouTube::ApiClient::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- YouTube::ApiClient::ApiError
- Defined in:
- app/services/youtube/api_client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, body: nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, status: nil, body: nil) ⇒ ApiError
Returns a new instance of ApiError.
19 20 21 22 23 |
# File 'app/services/youtube/api_client.rb', line 19 def initialize(, status: nil, body: nil) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
17 18 19 |
# File 'app/services/youtube/api_client.rb', line 17 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
17 18 19 |
# File 'app/services/youtube/api_client.rb', line 17 def status @status end |