class GuidedPath::LeadInNode

Attributes

pause[R]
text[R]

Public Class Methods

new(args = {}) click to toggle source
Calls superclass method
# File lib/guided_path/lead_in_node.rb, line 9
def initialize(args = {})
  super
  args = args.symbolize_keys

  raise(ArgumentError, "Must specify a value for the node") unless args[:text]
  @text = args[:text].to_s
  @pause = args[:pause].to_s
end

Public Instance Methods

to_hash() click to toggle source
Calls superclass method
# File lib/guided_path/lead_in_node.rb, line 19
def to_hash
  output = super
  output[:type] = 'leadin'
  output[:text] = @text
  output[:pause] = @pause
  output
end