Class: Expressir::Model::Declarations::UniqueRule
- Inherits:
-
Expressir::Model::Declaration
- Object
- ModelElement
- Expressir::Model::Declaration
- Expressir::Model::Declarations::UniqueRule
- Includes:
- Identifier
- Defined in:
- lib/expressir/model/declarations/unique_rule.rb
Overview
Specified in ISO 10303-11:2004
-
section 9.2.2.1 Uniqueness rule
Instance Attribute Summary collapse
Attributes included from Identifier
#id, #remark_items, #remarks, #source
Attributes inherited from ModelElement
Instance Method Summary collapse
- #children ⇒ Array<Declaration>
-
#initialize(options = {}) ⇒ UniqueRule
constructor
A new instance of UniqueRule.
Methods inherited from ModelElement
#children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s
Constructor Details
#initialize(options = {}) ⇒ UniqueRule
Returns a new instance of UniqueRule.
14 15 16 17 18 19 20 |
# File 'lib/expressir/model/declarations/unique_rule.rb', line 14 def initialize( = {}) initialize_identifier() @attributes = [:attributes] || [] super end |
Instance Attribute Details
#attributes ⇒ Reference
9 |
# File 'lib/expressir/model/declarations/unique_rule.rb', line 9 model_attr_accessor :attributes, "Reference" |
Instance Method Details
#children ⇒ Array<Declaration>
23 24 25 26 27 |
# File 'lib/expressir/model/declarations/unique_rule.rb', line 23 def children [ *remark_items, ] end |