Class: Rafflesia::ModuleEntityType
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ModuleEntityType
- Defined in:
- lib/rafflesia/registry/module_entity_type.rb
Constant Summary collapse
- HASH_ATTRS =
{ description: :description, id: :id, label: :label }.freeze
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(json) ⇒ ModuleEntityType
constructor
A new instance of ModuleEntityType.
Constructor Details
#initialize(json) ⇒ ModuleEntityType
Returns a new instance of ModuleEntityType.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/registry/module_entity_type.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @description = hash[:description] @id = hash[:id] @label = hash[:label] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
14 15 16 |
# File 'lib/rafflesia/registry/module_entity_type.rb', line 14 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
14 15 16 |
# File 'lib/rafflesia/registry/module_entity_type.rb', line 14 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
14 15 16 |
# File 'lib/rafflesia/registry/module_entity_type.rb', line 14 def label @label end |