Class: Fieldlabel
- Inherits:
-
Object
- Object
- Fieldlabel
- Defined in:
- lib/refworks/properties/fieldlabels/fieldlabel.rb
Instance Attribute Summary collapse
-
#displayorder ⇒ Object
readonly
Returns the value of attribute displayorder.
-
#includefld ⇒ Object
readonly
Returns the value of attribute includefld.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#lookup ⇒ Object
readonly
Returns the value of attribute lookup.
-
#maxlen ⇒ Object
readonly
Returns the value of attribute maxlen.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(rawfl) ⇒ Fieldlabel
constructor
A new instance of Fieldlabel.
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
#displayorder ⇒ Object (readonly)
Returns the value of attribute displayorder.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 2 def displayorder @displayorder end |
#includefld ⇒ Object (readonly)
Returns the value of attribute includefld.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 2 def includefld @includefld end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 2 def label @label end |
#lookup ⇒ Object (readonly)
Returns the value of attribute lookup.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 2 def lookup @lookup end |
#maxlen ⇒ Object (readonly)
Returns the value of attribute maxlen.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 2 def maxlen @maxlen end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 2 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/refworks/properties/fieldlabels/fieldlabel.rb', line 2 def type @type end |