Class: Dina::IdentifierType
- Inherits:
-
Object
- Object
- Dina::IdentifierType
- Defined in:
- lib/dina/utils/identifier_type.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize ⇒ IdentifierType
constructor
A new instance of IdentifierType.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ IdentifierType
Returns a new instance of IdentifierType.
6 7 |
# File 'lib/dina/utils/identifier_type.rb', line 6 def initialize end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/dina/utils/identifier_type.rb', line 3 def type @type end |
#uri ⇒ Object
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_hash ⇒ Object
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 |