Class: Rafflesia::ModuleIdentifierNamespace

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



15
16
17
# File 'lib/rafflesia/registry/module_identifier_namespace.rb', line 15

def description
  @description
end

#entity_typeObject

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

#exampleObject

Returns the value of attribute example.



15
16
17
# File 'lib/rafflesia/registry/module_identifier_namespace.rb', line 15

def example
  @example
end

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/rafflesia/registry/module_identifier_namespace.rb', line 15

def id
  @id
end