Class: CallSheet::DSL

Inherits:
Object
  • Object
show all
Includes:
Deterministic::Prelude::Result
Defined in:
lib/call_sheet/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, &block) ⇒ DSL

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DSL.



24
25
26
27
28
29
30
# File 'lib/call_sheet/dsl.rb', line 24

def initialize(options, &block)
  @options = options
  @container = options.fetch(:container)
  @steps = []

  instance_exec(&block)
end

Instance Attribute Details

#containerObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/call_sheet/dsl.rb', line 18

def container
  @container
end

#optionsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/call_sheet/dsl.rb', line 15

def options
  @options
end

#stepsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
# File 'lib/call_sheet/dsl.rb', line 21

def steps
  @steps
end

Instance Method Details

#callObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



40
41
42
# File 'lib/call_sheet/dsl.rb', line 40

def call
  Transaction.new(steps)
end