Class: AdfBuilder::Nodes::ColorCombination
- Defined in:
- lib/adf_builder/nodes/vehicle_nodes.rb
Instance Attribute Summary
Attributes inherited from Node
#attributes, #children, #tag_name, #value
Instance Method Summary collapse
- #exteriorcolor(value) ⇒ Object
-
#initialize ⇒ ColorCombination
constructor
A new instance of ColorCombination.
- #interiorcolor(value) ⇒ Object
- #preference(value) ⇒ Object
Methods inherited from Node
#add_child, #method_missing, #remove_children, #respond_to_missing?, #to_xml
Methods included from Validations
Constructor Details
#initialize ⇒ ColorCombination
Returns a new instance of ColorCombination.
174 175 176 177 |
# File 'lib/adf_builder/nodes/vehicle_nodes.rb', line 174 def initialize super @tag_name = :colorcombination end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AdfBuilder::Nodes::Node
Instance Method Details
#exteriorcolor(value) ⇒ Object
183 184 185 |
# File 'lib/adf_builder/nodes/vehicle_nodes.rb', line 183 def exteriorcolor(value) add_child(GenericNode.new(:exteriorcolor, {}, value)) end |
#interiorcolor(value) ⇒ Object
179 180 181 |
# File 'lib/adf_builder/nodes/vehicle_nodes.rb', line 179 def interiorcolor(value) add_child(GenericNode.new(:interiorcolor, {}, value)) end |
#preference(value) ⇒ Object
187 188 189 |
# File 'lib/adf_builder/nodes/vehicle_nodes.rb', line 187 def preference(value) add_child(GenericNode.new(:preference, {}, value)) end |