Class: Cfan122::Operation
- Inherits:
-
Object
- Object
- Cfan122::Operation
- Defined in:
- lib/cfan122/operation.rb
Direct Known Subclasses
ExamAgency, ExamLocation, ExamPlanDetail, ExamPlanList, ExamPlanResult, ExamStudentList, ExamSubject
Defined Under Namespace
Classes: Request, Response, ResponseError
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options = {}) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize(options = {}) ⇒ Operation
Returns a new instance of Operation.
8 9 10 |
# File 'lib/cfan122/operation.rb', line 8 def initialize = {} @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/cfan122/operation.rb', line 6 def @options end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
6 7 8 |
# File 'lib/cfan122/operation.rb', line 6 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/cfan122/operation.rb', line 6 def response @response end |
Class Method Details
.execute(options = {}) ⇒ Object
12 13 14 |
# File 'lib/cfan122/operation.rb', line 12 def self.execute = {} self.new().execute end |
Instance Method Details
#execute ⇒ Object
16 17 18 19 20 |
# File 'lib/cfan122/operation.rb', line 16 def execute @request = self.class::Request.new() @response = self.class::Response.new(@request) @response.body end |