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.



175
176
177
178
179
# File 'lib/blockspring.rb', line 175

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

Instance Attribute Details

#_errorsObject (readonly)

Returns the value of attribute _errors.



182
183
184
# File 'lib/blockspring.rb', line 182

def _errors
  @_errors
end

#paramsObject (readonly)

Returns the value of attribute params.



181
182
183
# File 'lib/blockspring.rb', line 181

def params
  @params
end

Instance Method Details

#addError(error) ⇒ Object



188
189
190
# File 'lib/blockspring.rb', line 188

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

#addHeaders(headers) ⇒ Object



192
193
194
# File 'lib/blockspring.rb', line 192

def addHeaders(headers)
  @_headers = headers
end

#getErrorsObject



184
185
186
# File 'lib/blockspring.rb', line 184

def getErrors
  return @_errors
end

#getHeadersObject



196
197
198
# File 'lib/blockspring.rb', line 196

def getHeaders
  return @_headers
end