Class: Datacite::Mapping::ResourceType
- Inherits:
-
Object
- Object
- Datacite::Mapping::ResourceType
- Includes:
- XML::Mapping
- Defined in:
- lib/datacite/mapping/resource_type.rb
Overview
The type of the resource
Instance Attribute Summary collapse
-
#resource_type_general ⇒ ResourceTypeGeneral
The general resource type.
-
#value ⇒ String
Additional free text description of the resource type.
Instance Method Summary collapse
-
#initialize(resource_type_general:, value: nil) ⇒ ResourceType
constructor
Initializes a new ResourceType.
Constructor Details
#initialize(resource_type_general:, value: nil) ⇒ ResourceType
Initializes a new Datacite::Mapping::ResourceType
64 65 66 67 |
# File 'lib/datacite/mapping/resource_type.rb', line 64 def initialize(resource_type_general:, value: nil) self.resource_type_general = resource_type_general self.value = value end |
Instance Attribute Details
#resource_type_general ⇒ ResourceTypeGeneral
Returns the general resource type.
79 |
# File 'lib/datacite/mapping/resource_type.rb', line 79 typesafe_enum_node :resource_type_general, '@resourceTypeGeneral', class: ResourceTypeGeneral |
#value ⇒ String
Returns additional free text description of the resource type. Optional.
83 |
# File 'lib/datacite/mapping/resource_type.rb', line 83 text_node :value, 'text()', default_value: nil |