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.



203
204
205
206
207
# File 'lib/blockspring.rb', line 203

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

Instance Attribute Details

#_errorsObject (readonly)

Returns the value of attribute _errors.



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

def _errors
  @_errors
end

#paramsObject (readonly)

Returns the value of attribute params.



209
210
211
# File 'lib/blockspring.rb', line 209

def params
  @params
end

Instance Method Details

#addError(error) ⇒ Object



216
217
218
# File 'lib/blockspring.rb', line 216

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

#addHeaders(headers) ⇒ Object



220
221
222
# File 'lib/blockspring.rb', line 220

def addHeaders(headers)
  @_headers = headers
end

#getErrorsObject



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

def getErrors
  return @_errors
end

#getHeadersObject



224
225
226
# File 'lib/blockspring.rb', line 224

def getHeaders
  return @_headers
end