Class: ReftypeFieldlabels

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldlabelsObject (readonly)

Returns the value of attribute fieldlabels.



2
3
4
# File 'lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb', line 2

def fieldlabels
  @fieldlabels
end

#typeordObject (readonly)

Returns the value of attribute typeord.



2
3
4
# File 'lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb', line 2

def typeord
  @typeord
end