Class: FlowTrace::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_trace/step.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flow, step, **options) ⇒ Step

Returns a new instance of Step.



9
10
11
12
13
# File 'lib/flow_trace/step.rb', line 9

def initialize(flow, step, **options)
  @flow = flow
  @step = step
  @options = options
end

Instance Attribute Details

#flowObject (readonly)

Returns the value of attribute flow.



3
4
5
# File 'lib/flow_trace/step.rb', line 3

def flow
  @flow
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/flow_trace/step.rb', line 3

def options
  @options
end

#stepObject (readonly)

Returns the value of attribute step.



3
4
5
# File 'lib/flow_trace/step.rb', line 3

def step
  @step
end

Class Method Details

.call(*args) ⇒ Object



5
6
7
# File 'lib/flow_trace/step.rb', line 5

def self.call(*args)
  new(*args).call
end

Instance Method Details

#callObject



15
16
17
# File 'lib/flow_trace/step.rb', line 15

def call
  HTTP.post(FlowTrace::Settings.config.proxy_url, json: payload)
end