Class: Vonage::Verify2::WorkflowBuilder
- Inherits:
-
Object
- Object
- Vonage::Verify2::WorkflowBuilder
- Defined in:
- lib/vonage/verify2/workflow_builder.rb
Instance Attribute Summary collapse
-
#workflow ⇒ Object
readonly
Returns the value of attribute workflow.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ WorkflowBuilder
constructor
A new instance of WorkflowBuilder.
Constructor Details
#initialize ⇒ WorkflowBuilder
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
#workflow ⇒ Object (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
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 |