Class: Typelabel

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/properties/typelabels/typelabel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/refworks/properties/typelabels/typelabel.rb', line 2

def name
  @name
end

#typeOrdObject (readonly)

Returns the value of attribute typeOrd.



2
3
4
# File 'lib/refworks/properties/typelabels/typelabel.rb', line 2

def typeOrd
  @typeOrd
end