Class: Voyager::Holdings::Order
- Inherits:
-
Object
- Object
- Voyager::Holdings::Order
- Defined in:
- lib/holdings/order.rb
Instance Attribute Summary collapse
-
#current_issues ⇒ Object
readonly
Returns the value of attribute current_issues.
-
#orders ⇒ Object
readonly
Returns the value of attribute orders.
Instance Method Summary collapse
-
#initialize(xml_node) ⇒ Order
constructor
Order class initializing method Populates instance variables from the mfhd:mfhdRecord node.
Constructor Details
#initialize(xml_node) ⇒ Order
Order class initializing method Populates instance variables from the mfhd:mfhdRecord node.
-
Args :
-
xml_node
-> mfhd:mfhdRecord node
-
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/holdings/order.rb', line 12 def initialize(xml_node) # serials checkIn node serialsCheckIn = xml_node.at_css("mfhd|serialsCheckIn") @current_issues = parse_current_issues(serialsCheckIn) # purchase order line items node poLineItems = xml_node.at_css("mfhd|poLineItems") @orders = parse_order(poLineItems) end |
Instance Attribute Details
#current_issues ⇒ Object (readonly)
Returns the value of attribute current_issues.
4 5 6 |
# File 'lib/holdings/order.rb', line 4 def current_issues @current_issues end |
#orders ⇒ Object (readonly)
Returns the value of attribute orders.
4 5 6 |
# File 'lib/holdings/order.rb', line 4 def orders @orders end |