Class: Ea::Transformers::QeaToXmi::AssociationEnd
- Inherits:
-
Struct
- Object
- Struct
- Ea::Transformers::QeaToXmi::AssociationEnd
- Defined in:
- lib/ea/transformers/qea_to_xmi/association_end.rb
Overview
Lightweight value object returned by Transformer#build_association_end.
Carries both the synthesised xmi:id of the <ownedEnd> element
(used to populate <memberEnd idref="..."> on the enclosing
<packagedElement xmi:type="uml:Association">) and the model
instance itself.
Using a Struct (not a Hash) makes the contract visible at the
call site: typos like end.xmii_id raise NoMethodError instead
of silently returning nil.
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#xmi_id ⇒ Object
Returns the value of attribute xmi_id.
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model
16 17 18 |
# File 'lib/ea/transformers/qea_to_xmi/association_end.rb', line 16 def model @model end |
#xmi_id ⇒ Object
Returns the value of attribute xmi_id
16 17 18 |
# File 'lib/ea/transformers/qea_to_xmi/association_end.rb', line 16 def xmi_id @xmi_id end |