class Syncano::Response

Represents response from Syncano API

Attributes

data[RW]
errors[RW]
status[RW]

Public Class Methods

new(status = false, data = nil, errors = []) click to toggle source

Constructor for Syncano::Response @param [Boolean] status @param [Hash] data @param [Array] errors

Calls superclass method
# 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