Class: Lutaml::Model::ConsolidationMap
- Inherits:
-
Object
- Object
- Lutaml::Model::ConsolidationMap
- Defined in:
- lib/lutaml/model/consolidation_map.rb
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#by ⇒ Object
readonly
Returns the value of attribute by.
-
#group_class ⇒ Object
readonly
Returns the value of attribute group_class.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
- #attribute_based? ⇒ Boolean
-
#initialize(by:, to:, group_class:, rules:) ⇒ ConsolidationMap
constructor
A new instance of ConsolidationMap.
- #pattern? ⇒ Boolean
Constructor Details
#initialize(by:, to:, group_class:, rules:) ⇒ ConsolidationMap
Returns a new instance of ConsolidationMap.
12 13 14 15 16 17 |
# File 'lib/lutaml/model/consolidation_map.rb', line 12 def initialize(by:, to:, group_class:, rules:) @by = by @to = to @group_class = group_class @rules = rules end |
Instance Attribute Details
#by ⇒ Object (readonly)
Returns the value of attribute by.
6 7 8 |
# File 'lib/lutaml/model/consolidation_map.rb', line 6 def by @by end |
#group_class ⇒ Object (readonly)
Returns the value of attribute group_class.
6 7 8 |
# File 'lib/lutaml/model/consolidation_map.rb', line 6 def group_class @group_class end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
6 7 8 |
# File 'lib/lutaml/model/consolidation_map.rb', line 6 def rules @rules end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
6 7 8 |
# File 'lib/lutaml/model/consolidation_map.rb', line 6 def to @to end |
Instance Method Details
#attribute_based? ⇒ Boolean
23 24 25 |
# File 'lib/lutaml/model/consolidation_map.rb', line 23 def attribute_based? !pattern? end |
#pattern? ⇒ Boolean
19 20 21 |
# File 'lib/lutaml/model/consolidation_map.rb', line 19 def pattern? @by == :pattern end |