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.
203 204 205 206 207 |
# File 'lib/blockspring.rb', line 203 def initialize @params = {} @_errors = [] @_headers = {} end |
Instance Attribute Details
#_errors ⇒ Object (readonly)
Returns the value of attribute _errors.
210 211 212 |
# File 'lib/blockspring.rb', line 210 def _errors @_errors end |
#params ⇒ Object (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 |
#getErrors ⇒ Object
212 213 214 |
# File 'lib/blockspring.rb', line 212 def getErrors return @_errors end |
#getHeaders ⇒ Object
224 225 226 |
# File 'lib/blockspring.rb', line 224 def getHeaders return @_headers end |