Class: Vonage::Verify2::WorkflowBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/vonage/verify2/workflow_builder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWorkflowBuilder

Returns a new instance of WorkflowBuilder.



15
16
17
# File 'lib/vonage/verify2/workflow_builder.rb', line 15

def initialize
  @workflow = Vonage::Verify2::Workflow.new
end

Instance Attribute Details

#workflowObject (readonly)

Returns the value of attribute workflow.



13
14
15
# File 'lib/vonage/verify2/workflow_builder.rb', line 13

def workflow
  @workflow
end

Class Method Details

.build {|builder| ... } ⇒ Object

Yields:

  • (builder)


7
8
9
10
11
# File 'lib/vonage/verify2/workflow_builder.rb', line 7

def self.build
  builder = self.new
  yield builder if block_given?
  builder.workflow
end