Class: Exchanger::Operation
- Inherits:
-
Object
- Object
- Exchanger::Operation
- Defined in:
- lib/exchanger/operation.rb
Overview
Abstract class for operations.
Exchange Web Services provides many operations that enable you to access information from the Exchanger store.
Direct Known Subclasses
CreateAttachment, CreateItem, DeleteAttachment, DeleteItem, ExpandDL, FindFolder, FindItem, GetAttachment, GetFolder, GetItem, GetUserAvailability, GetUserConfiguration, MoveItem, ResolveNames, UpdateItem
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
-
.run(options = {}) ⇒ Object
Shortcut for initialize and run.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Operation
constructor
A new instance of Operation.
-
#run ⇒ Object
Returns response.
Constructor Details
#initialize(options = {}) ⇒ Operation
Returns a new instance of Operation.
11 12 13 |
# File 'lib/exchanger/operation.rb', line 11 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/exchanger/operation.rb', line 9 def @options end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
9 10 11 |
# File 'lib/exchanger/operation.rb', line 9 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/exchanger/operation.rb', line 9 def response @response end |
Class Method Details
.run(options = {}) ⇒ Object
Shortcut for initialize and run.
16 17 18 19 |
# File 'lib/exchanger/operation.rb', line 16 def self.run( = {}) operation = self.new() operation.run end |