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.
175 176 177 178 179 |
# File 'lib/blockspring.rb', line 175 def initialize @params = {} @_errors = [] @_headers = {} end |
Instance Attribute Details
#_errors ⇒ Object (readonly)
Returns the value of attribute _errors.
182 183 184 |
# File 'lib/blockspring.rb', line 182 def _errors @_errors end |
#params ⇒ Object (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 |
#getErrors ⇒ Object
184 185 186 |
# File 'lib/blockspring.rb', line 184 def getErrors return @_errors end |
#getHeaders ⇒ Object
196 197 198 |
# File 'lib/blockspring.rb', line 196 def getHeaders return @_headers end |