Class: SimpleSegment::Operations::Operation
- Inherits:
-
Object
- Object
- SimpleSegment::Operations::Operation
- Defined in:
- lib/simple_segment/operations/operation.rb
Constant Summary collapse
- DEFAULT_CONTEXT =
{ library: { name: 'simple_segment', version: SimpleSegment::VERSION } }.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client, options = {}) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize(client, options = {}) ⇒ Operation
Returns a new instance of Operation.
13 14 15 16 |
# File 'lib/simple_segment/operations/operation.rb', line 13 def initialize(client, = {}) = @request = Request.new(client) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/simple_segment/operations/operation.rb', line 11 def end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
11 12 13 |
# File 'lib/simple_segment/operations/operation.rb', line 11 def request @request end |
Instance Method Details
#call ⇒ Object
18 19 20 |
# File 'lib/simple_segment/operations/operation.rb', line 18 def call raise 'Must be implemented in a subclass' end |