Class: SimpleSegment::Operations::Operation
- Inherits:
-
Object
- Object
- SimpleSegment::Operations::Operation
- Includes:
- Utils
- 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.
Methods included from Utils
included, #isoify_dates, #isoify_dates!, #maybe_datetime_in_iso8601, #symbolize_keys
Constructor Details
#initialize(client, options = {}) ⇒ Operation
Returns a new instance of Operation.
15 16 17 18 |
# File 'lib/simple_segment/operations/operation.rb', line 15 def initialize(client, = {}) = @request = Request.new(client) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/simple_segment/operations/operation.rb', line 13 def end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
13 14 15 |
# File 'lib/simple_segment/operations/operation.rb', line 13 def request @request end |
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'lib/simple_segment/operations/operation.rb', line 20 def call raise 'Must be implemented in a subclass' end |