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