Class: ReftypeFieldlabels
- Inherits:
-
Object
- Object
- ReftypeFieldlabels
- Defined in:
- lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb
Instance Attribute Summary collapse
-
#fieldlabels ⇒ Object
readonly
Returns the value of attribute fieldlabels.
-
#typeord ⇒ Object
readonly
Returns the value of attribute typeord.
Instance Method Summary collapse
-
#initialize(raw_rt) ⇒ ReftypeFieldlabels
constructor
A new instance of ReftypeFieldlabels.
Constructor Details
#initialize(raw_rt) ⇒ ReftypeFieldlabels
Returns a new instance of ReftypeFieldlabels.
4 5 6 7 8 9 10 |
# File 'lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb', line 4 def initialize(raw_rt) @typeord = raw_rt["rt"]["typeOrd"] @fieldLabels = Hash.new raw_rt.each do |field, fieldval| @fieldLabels[field] = Fieldlabel.new(fieldval) end end |
Instance Attribute Details
#fieldlabels ⇒ Object (readonly)
Returns the value of attribute fieldlabels.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb', line 2 def fieldlabels @fieldlabels end |
#typeord ⇒ Object (readonly)
Returns the value of attribute typeord.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb', line 2 def typeord @typeord end |