Class: CtsUrn

Inherits:
Object
  • Object
show all
Defined in:
lib/cite_mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cts_urn) ⇒ CtsUrn

Returns a new instance of CtsUrn.



84
85
86
87
# File 'lib/cite_mapper.rb', line 84

def initialize(cts_urn)
  @urn = cts_urn
  parse
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



82
83
84
# File 'lib/cite_mapper.rb', line 82

def author
  @author
end

#categoryObject (readonly)

Returns the value of attribute category.



82
83
84
# File 'lib/cite_mapper.rb', line 82

def category
  @category
end

#editionObject (readonly)

Returns the value of attribute edition.



82
83
84
# File 'lib/cite_mapper.rb', line 82

def edition
  @edition
end

#prefixObject (readonly)

Returns the value of attribute prefix.



82
83
84
# File 'lib/cite_mapper.rb', line 82

def prefix
  @prefix
end

#sectionObject (readonly)

Returns the value of attribute section.



82
83
84
# File 'lib/cite_mapper.rb', line 82

def section
  @section
end

#workObject (readonly)

Returns the value of attribute work.



82
83
84
# File 'lib/cite_mapper.rb', line 82

def work
  @work
end