Class: KlassTableGeneralDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- KlassTableGeneralDrop
- Defined in:
- lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb
Instance Method Summary collapse
- #attributes ⇒ Object
- #general ⇒ Object
- #has_general? ⇒ Boolean
- #id ⇒ Object
-
#initialize(gen) ⇒ KlassTableGeneralDrop
constructor
rubocop:disable Lint/MissingSuper.
- #name ⇒ Object
- #upper_klass ⇒ Object
Constructor Details
#initialize(gen) ⇒ KlassTableGeneralDrop
rubocop:disable Lint/MissingSuper
4 5 6 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb', line 4 def initialize(gen) # rubocop:disable Lint/MissingSuper @gen = gen end |
Instance Method Details
#attributes ⇒ Object
28 29 30 31 32 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb', line 28 def attributes @gen[:general_attributes].map do |attr| KlassTableAttributeDrop.new(attr) end end |
#general ⇒ Object
20 21 22 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb', line 20 def general KlassTableGeneralDrop.new(@gen[:general]) if @gen[:general] end |
#has_general? ⇒ Boolean
24 25 26 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb', line 24 def has_general? !!@gen[:general] end |
#id ⇒ Object
8 9 10 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb', line 8 def id @gen[:general_id] end |
#name ⇒ Object
12 13 14 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb', line 12 def name @gen[:general_name] end |
#upper_klass ⇒ Object
16 17 18 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/klass_table_general_drop.rb', line 16 def upper_klass @gen[:general_upper_klass] end |