Class: BaseRequest
- Inherits:
-
Object
- Object
- BaseRequest
- Defined in:
- lib/libisi/request/base.rb
Overview
Copyright © 2007-2010 Logintas AG Switzerland
This file is part of Libisi.
Libisi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Libisi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Libisi. If not, see <www.gnu.org/licenses/>.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(env, task, options = {}) ⇒ BaseRequest
constructor
A new instance of BaseRequest.
Constructor Details
#initialize(env, task, options = {}) ⇒ BaseRequest
Returns a new instance of BaseRequest.
22 23 24 25 |
# File 'lib/libisi/request/base.rb', line 22 def initialize(env, task, = {}) @environment = env @task = task end |
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
20 21 22 |
# File 'lib/libisi/request/base.rb', line 20 def environment @environment end |
#task ⇒ Object
Returns the value of attribute task.
20 21 22 |
# File 'lib/libisi/request/base.rb', line 20 def task @task end |
Instance Method Details
#execute ⇒ Object
27 |
# File 'lib/libisi/request/base.rb', line 27 def execute; environment.execute(task); end |