Class: Cfan122::Operation::Request
- Inherits:
-
Object
- Object
- Cfan122::Operation::Request
- Defined in:
- lib/cfan122/operation.rb
Direct Known Subclasses
ExamAgency::Request, ExamLocation::Request, ExamPlanDetail::Request, ExamPlanList::Request, ExamPlanResult::Request, ExamStudentList::Request, ExamSubject::Request
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#impersonation_user ⇒ Object
Returns the value of attribute impersonation_user.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(params = {}) ⇒ Request
constructor
A new instance of Request.
- #set_default ⇒ Object
- #set_request_params ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ Request
Returns a new instance of Request.
25 26 27 28 29 30 |
# File 'lib/cfan122/operation.rb', line 25 def initialize params = {} set_default set_base_uri province self.attributes = params set_request_params end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
23 24 25 |
# File 'lib/cfan122/operation.rb', line 23 def body @body end |
#impersonation_user ⇒ Object
Returns the value of attribute impersonation_user.
23 24 25 |
# File 'lib/cfan122/operation.rb', line 23 def impersonation_user @impersonation_user end |
#response ⇒ Object
Returns the value of attribute response.
23 24 25 |
# File 'lib/cfan122/operation.rb', line 23 def response @response end |
Instance Method Details
#execute ⇒ Object
36 37 38 |
# File 'lib/cfan122/operation.rb', line 36 def execute raise NotImplemented end |
#set_default ⇒ Object
32 |
# File 'lib/cfan122/operation.rb', line 32 def set_default; end |
#set_request_params ⇒ Object
34 |
# File 'lib/cfan122/operation.rb', line 34 def set_request_params; end |