Class: Rosette::Client::ArrayResponse
- Inherits:
-
Array
- Object
- Array
- Rosette::Client::ArrayResponse
- Defined in:
- lib/rosette/client/response.rb
Instance Method Summary collapse
- #attributes ⇒ Object
- #error? ⇒ Boolean
-
#initialize(array) ⇒ ArrayResponse
constructor
A new instance of ArrayResponse.
- #success? ⇒ Boolean
Constructor Details
#initialize(array) ⇒ ArrayResponse
Returns a new instance of ArrayResponse.
45 46 47 |
# File 'lib/rosette/client/response.rb', line 45 def initialize(array) replace(array) end |
Instance Method Details
#attributes ⇒ Object
57 58 59 |
# File 'lib/rosette/client/response.rb', line 57 def attributes self end |
#error? ⇒ Boolean
49 50 51 |
# File 'lib/rosette/client/response.rb', line 49 def error? false end |
#success? ⇒ Boolean
53 54 55 |
# File 'lib/rosette/client/response.rb', line 53 def success? true end |