class Datacite::Mapping::ResourceType

The type of the resource

Public Class Methods

new(resource_type_general:, value: nil) click to toggle source

Initializes a new {ResourceType} @param resource_type_general [ResourceTypeGeneral] the general resource type @param value [String] additional free text description of the resource type.

# 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

Public Instance Methods

resource_type_general=(val) click to toggle source
# File lib/datacite/mapping/resource_type.rb, line 69
def resource_type_general=(val)
  raise ArgumentError, 'General resource type cannot be nil' unless val

  @resource_type_general = val
end