Class: CtsUrn
- Inherits:
-
Object
- Object
- CtsUrn
- Defined in:
- lib/cite_mapper.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#edition ⇒ Object
readonly
Returns the value of attribute edition.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#work ⇒ Object
readonly
Returns the value of attribute work.
Instance Method Summary collapse
-
#initialize(cts_urn) ⇒ CtsUrn
constructor
A new instance of CtsUrn.
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
#author ⇒ Object (readonly)
Returns the value of attribute author.
82 83 84 |
# File 'lib/cite_mapper.rb', line 82 def @author end |
#category ⇒ Object (readonly)
Returns the value of attribute category.
82 83 84 |
# File 'lib/cite_mapper.rb', line 82 def category @category end |
#edition ⇒ Object (readonly)
Returns the value of attribute edition.
82 83 84 |
# File 'lib/cite_mapper.rb', line 82 def edition @edition end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
82 83 84 |
# File 'lib/cite_mapper.rb', line 82 def prefix @prefix end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
82 83 84 |
# File 'lib/cite_mapper.rb', line 82 def section @section end |
#work ⇒ Object (readonly)
Returns the value of attribute work.
82 83 84 |
# File 'lib/cite_mapper.rb', line 82 def work @work end |