Class: EagleCAD::DeviceSet::Connect
- Inherits:
-
Struct
- Object
- Struct
- EagleCAD::DeviceSet::Connect
- Defined in:
- lib/eaglecad/deviceset.rb
Instance Attribute Summary collapse
-
#gate ⇒ Object
Returns the value of attribute gate.
-
#pad ⇒ Object
Returns the value of attribute pad.
-
#pin ⇒ Object
Returns the value of attribute pin.
-
#route ⇒ Object
Returns the value of attribute route.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#gate ⇒ Object
Returns the value of attribute gate
10 11 12 |
# File 'lib/eaglecad/deviceset.rb', line 10 def gate @gate end |
#pad ⇒ Object
Returns the value of attribute pad
10 11 12 |
# File 'lib/eaglecad/deviceset.rb', line 10 def pad @pad end |
#pin ⇒ Object
Returns the value of attribute pin
10 11 12 |
# File 'lib/eaglecad/deviceset.rb', line 10 def pin @pin end |
#route ⇒ Object
Returns the value of attribute route
10 11 12 |
# File 'lib/eaglecad/deviceset.rb', line 10 def route @route end |
Class Method Details
Instance Method Details
#to_xml ⇒ REXML::Element
16 17 18 |
# File 'lib/eaglecad/deviceset.rb', line 16 def to_xml REXML::Element.new('connect').tap {|element| element.add_attributes({'gate' => gate, 'pad' => pad, 'pin' => pin}) } end |