Class: AdfBuilder::Nodes::Email

Inherits:
Node
  • Object
show all
Defined in:
lib/adf_builder/nodes/shared.rb

Instance Attribute Summary

Attributes inherited from Node

#attributes, #children, #tag_name, #value

Instance Method Summary collapse

Methods inherited from Node

#add_child, #method_missing, #remove_children, #respond_to_missing?, #to_xml

Methods included from Validations

included, #validate!

Constructor Details

#initialize(value, preferredcontact: nil) ⇒ Email

Returns a new instance of Email.



38
39
40
41
42
43
# File 'lib/adf_builder/nodes/shared.rb', line 38

def initialize(value, preferredcontact: nil)
  super()
  @tag_name = :email
  @value = value
  @attributes[:preferredcontact] = preferredcontact if preferredcontact
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AdfBuilder::Nodes::Node