Class: Voyager::Holdings::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/holdings/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_issuesObject (readonly)

Returns the value of attribute current_issues.



4
5
6
# File 'lib/holdings/order.rb', line 4

def current_issues
  @current_issues
end

#ordersObject (readonly)

Returns the value of attribute orders.



4
5
6
# File 'lib/holdings/order.rb', line 4

def orders
  @orders
end