Class: IngramMicro::InboundBaseElement
- Inherits:
-
Object
- Object
- IngramMicro::InboundBaseElement
- Defined in:
- lib/ingram_micro/inbound_base_element.rb
Direct Known Subclasses
InboundDetail, InboundLineItem, InboundOrderHeader, InboundPurchaseOrderInformation, InboundShipmentInformation, InventorySync, InventorySyncDetail, InventorySyncLineItem, SalesOrderRejection, SalesOrderSuccess, SerialNumbers, ShipAdvice
Instance Attribute Summary collapse
-
#hash ⇒ Object
Returns the value of attribute hash.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(hash) ⇒ InboundBaseElement
constructor
A new instance of InboundBaseElement.
- #transaction_name ⇒ Object
Constructor Details
#initialize(hash) ⇒ InboundBaseElement
Returns a new instance of InboundBaseElement.
4 5 6 |
# File 'lib/ingram_micro/inbound_base_element.rb', line 4 def initialize(hash) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object
Returns the value of attribute hash.
2 3 4 |
# File 'lib/ingram_micro/inbound_base_element.rb', line 2 def hash @hash end |
Instance Method Details
#==(other) ⇒ Object
8 9 10 11 |
# File 'lib/ingram_micro/inbound_base_element.rb', line 8 def ==(other) self.class == other.class && @hash == other.hash end |
#transaction_name ⇒ Object
13 14 15 |
# File 'lib/ingram_micro/inbound_base_element.rb', line 13 def transaction_name return @hash['message']['message_header']['transaction_name'] end |