Class: Echonest::Response::Status
- Inherits:
-
Object
- Object
- Echonest::Response::Status
- Defined in:
- lib/echonest/response.rb
Constant Summary collapse
- UNKNOWN_ERROR =
-1
- SUCCESS =
0
- INVALID_API_KEY =
1
- PERMISSION_DENIED =
2
- RATE_LIMIT_EXCEEDED =
3
- MISSING_PARAMETER =
4
- INVALID_PARAMETER =
5
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(response_body) ⇒ Status
constructor
A new instance of Status.
Constructor Details
#initialize(response_body) ⇒ Status
Returns a new instance of Status.
35 36 37 38 |
# File 'lib/echonest/response.rb', line 35 def initialize(response_body) @code = response_body.status.code @message = response_body.status. end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
33 34 35 |
# File 'lib/echonest/response.rb', line 33 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
33 34 35 |
# File 'lib/echonest/response.rb', line 33 def @message end |