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
- #getErrors ⇒ Object
-
#initialize ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize ⇒ Request
Returns a new instance of Request.
121 122 123 124 |
# File 'lib/blockspring.rb', line 121 def initialize @params = {} @_errors = [] end |
Instance Attribute Details
#_errors ⇒ Object (readonly)
Returns the value of attribute _errors.
127 128 129 |
# File 'lib/blockspring.rb', line 127 def _errors @_errors end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
126 127 128 |
# File 'lib/blockspring.rb', line 126 def params @params end |
Instance Method Details
#addError(error) ⇒ Object
133 134 135 |
# File 'lib/blockspring.rb', line 133 def addError(error) @_errors.push(error) end |
#getErrors ⇒ Object
129 130 131 |
# File 'lib/blockspring.rb', line 129 def getErrors return @_errors end |