Class: Dina::IdentifierType

Inherits:
Object
  • Object
show all
Defined in:
lib/dina/utils/identifier_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIdentifierType

Returns a new instance of IdentifierType.



6
7
# File 'lib/dina/utils/identifier_type.rb', line 6

def initialize
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/dina/utils/identifier_type.rb', line 3

def type
  @type
end

#uriObject

Returns the value of attribute uri.



4
5
6
# File 'lib/dina/utils/identifier_type.rb', line 4

def uri
  @uri
end

Instance Method Details

#to_hashObject



9
10
11
12
13
# File 'lib/dina/utils/identifier_type.rb', line 9

def to_hash
  hash = {}
  instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
  hash
end