Class: Typelabel
- Inherits:
-
Object
- Object
- Typelabel
- Defined in:
- lib/refworks/properties/typelabels/typelabel.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#typeOrd ⇒ Object
readonly
Returns the value of attribute typeOrd.
Instance Method Summary collapse
-
#initialize(rawtype) ⇒ Typelabel
constructor
A new instance of Typelabel.
Constructor Details
#initialize(rawtype) ⇒ Typelabel
Returns a new instance of Typelabel.
4 5 6 7 |
# File 'lib/refworks/properties/typelabels/typelabel.rb', line 4 def initialize(rawtype) @name = rawtype["rt"]["__content__"] @typeOrd = rawtype["rt"]["typeOrd"] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/refworks/properties/typelabels/typelabel.rb', line 2 def name @name end |
#typeOrd ⇒ Object (readonly)
Returns the value of attribute typeOrd.
2 3 4 |
# File 'lib/refworks/properties/typelabels/typelabel.rb', line 2 def typeOrd @typeOrd end |