Class: Blockspring::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/blockspring.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRequest

Returns a new instance of Request.



205
206
207
208
209
# File 'lib/blockspring.rb', line 205

def initialize
  @params = {}
  @_errors = []
  @_headers = {}
end

Instance Attribute Details

#_errorsObject (readonly)

Returns the value of attribute _errors.



212
213
214
# File 'lib/blockspring.rb', line 212

def _errors
  @_errors
end

#paramsObject (readonly)

Returns the value of attribute params.



211
212
213
# File 'lib/blockspring.rb', line 211

def params
  @params
end

Instance Method Details

#addError(error) ⇒ Object



218
219
220
# File 'lib/blockspring.rb', line 218

def addError(error)
  @_errors.push(error)
end

#addHeaders(headers) ⇒ Object



222
223
224
# File 'lib/blockspring.rb', line 222

def addHeaders(headers)
  @_headers = headers
end

#getErrorsObject



214
215
216
# File 'lib/blockspring.rb', line 214

def getErrors
  return @_errors
end

#getHeadersObject



226
227
228
# File 'lib/blockspring.rb', line 226

def getHeaders
  return @_headers
end