Class: Blockspring::Request
- Inherits:
-
Object
- Object
- Blockspring::Request
- Defined in:
- lib/blockspring.rb
Instance Attribute Summary collapse
-
#_errors ⇒ Object
readonly
Returns the value of attribute _errors.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #addError(error) ⇒ Object
- #addHeaders(headers) ⇒ Object
- #getErrors ⇒ Object
- #getHeaders ⇒ Object
-
#initialize ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize ⇒ Request
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
#_errors ⇒ Object (readonly)
Returns the value of attribute _errors.
212 213 214 |
# File 'lib/blockspring.rb', line 212 def _errors @_errors end |
#params ⇒ Object (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 |
#getErrors ⇒ Object
214 215 216 |
# File 'lib/blockspring.rb', line 214 def getErrors return @_errors end |
#getHeaders ⇒ Object
226 227 228 |
# File 'lib/blockspring.rb', line 226 def getHeaders return @_headers end |