Exception: Sportradar::Api::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Sportradar::Api::Error
- Defined in:
- lib/sportradar/api/error.rb
Defined Under Namespace
Classes: AuthenticationError, InvalidAccessLevel, InvalidLeague, InvalidResponseFormat, InvalidSeason, InvalidSport, InvalidType, NoApiKey, NoData, Timeout
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(code, message, response) ⇒ Error
constructor
A new instance of Error.
- #success? ⇒ Boolean
Constructor Details
#initialize(code, message, response) ⇒ Error
Returns a new instance of Error.
17 18 19 20 21 |
# File 'lib/sportradar/api/error.rb', line 17 def initialize( code, , response) @code = code @message = @response = response end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/sportradar/api/error.rb', line 15 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
15 16 17 |
# File 'lib/sportradar/api/error.rb', line 15 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
15 16 17 |
# File 'lib/sportradar/api/error.rb', line 15 def response @response end |
Instance Method Details
#success? ⇒ Boolean
23 24 25 |
# File 'lib/sportradar/api/error.rb', line 23 def success? false end |