Class: Exlibris::Aleph::Table::Reader::Row::Base
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Table::Reader::Row::Base
- Defined in:
- lib/exlibris/aleph/table/reader/row/base.rb
Direct Known Subclasses
Collections, ItemCirculationPolicies, ItemDisplayMasks, PatronCirculationPolicies, PatronStatuses, SubLibraries
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(data) ⇒ Base
Returns a new instance of Base.
17 18 19 |
# File 'lib/exlibris/aleph/table/reader/row/base.rb', line 17 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
15 16 17 |
# File 'lib/exlibris/aleph/table/reader/row/base.rb', line 15 def data @data end |
Class Method Details
.attr_ordered_keys(*ordered_keys) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/exlibris/aleph/table/reader/row/base.rb', line 7 def self.attr_ordered_keys(*ordered_keys) ordered_keys.each_with_index do |key, index| define_method(key) do eval("@#{key} ||= data[#{index}].strip") end end end |