Class: Syncano::Response
- Inherits:
-
Object
- Object
- Syncano::Response
- Defined in:
- lib/syncano/response.rb
Overview
Represents response from Syncano API
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status = false, data = nil, errors = []) ⇒ Response
constructor
Constructor for Syncano::Response.
Constructor Details
#initialize(status = false, data = nil, errors = []) ⇒ Response
Constructor for Syncano::Response
10 11 12 13 14 15 16 |
# File 'lib/syncano/response.rb', line 10 def initialize(status = false, data = nil, errors = []) super() self.status = status self.data = data self.errors = errors end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/syncano/response.rb', line 4 def data @data end |
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/syncano/response.rb', line 4 def errors @errors end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/syncano/response.rb', line 4 def status @status end |