Class: AdfBuilder::Nodes::Email
- Defined in:
- lib/adf_builder/nodes/shared.rb
Instance Attribute Summary
Attributes inherited from Node
#attributes, #children, #tag_name, #value
Instance Method Summary collapse
-
#initialize(value, preferredcontact: nil) ⇒ Email
constructor
A new instance of Email.
Methods inherited from Node
#add_child, #method_missing, #remove_children, #respond_to_missing?, #to_xml
Methods included from Validations
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