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.



121
122
123
124
# File 'lib/blockspring.rb', line 121

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

Instance Attribute Details

#_errorsObject (readonly)

Returns the value of attribute _errors.



127
128
129
# File 'lib/blockspring.rb', line 127

def _errors
  @_errors
end

#paramsObject (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

#getErrorsObject



129
130
131
# File 'lib/blockspring.rb', line 129

def getErrors
  return @_errors
end