Class: Fieldlabel

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rawfl) ⇒ Fieldlabel

Returns a new instance of Fieldlabel.



4
5
6
7
8
9
10
11
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 4

def initialize(rawfl)
  @name = rawfl["__content__"]
  @type = rawfl["type"]
  @displayorder = rawfl["displayOrder"]
  @includefld = rawfl["includefld"]
  @maxlen = rawfl["maxlen"]
  @lookup = rawfl["lookup"]
end

Instance Attribute Details

#displayorderObject (readonly)

Returns the value of attribute displayorder.



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

def displayorder
  @displayorder
end

#includefldObject (readonly)

Returns the value of attribute includefld.



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

def includefld
  @includefld
end

#labelObject (readonly)

Returns the value of attribute label.



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

def label
  @label
end

#lookupObject (readonly)

Returns the value of attribute lookup.



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

def lookup
  @lookup
end

#maxlenObject (readonly)

Returns the value of attribute maxlen.



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

def maxlen
  @maxlen
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end