Class: Lutaml::Model::Organization
- Inherits:
-
Object
- Object
- Lutaml::Model::Organization
- Defined in:
- lib/lutaml/model/organization.rb
Overview
Stores the format-agnostic declaration that a Collection produces organized instances of a GroupClass.
Created by Collection.organizes(:name, GroupClass). Stored as class-level metadata on the Collection subclass.
Instance Attribute Summary collapse
-
#group_class ⇒ Object
readonly
Returns the value of attribute group_class.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, group_class) ⇒ Organization
constructor
A new instance of Organization.
Constructor Details
#initialize(name, group_class) ⇒ Organization
Returns a new instance of Organization.
23 24 25 26 |
# File 'lib/lutaml/model/organization.rb', line 23 def initialize(name, group_class) @name = name @group_class = group_class end |
Instance Attribute Details
#group_class ⇒ Object (readonly)
Returns the value of attribute group_class.
19 20 21 |
# File 'lib/lutaml/model/organization.rb', line 19 def group_class @group_class end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/lutaml/model/organization.rb', line 19 def name @name end |