Class: IngramMicro::InboundBaseElement

Inherits:
Object
  • Object
show all
Defined in:
lib/ingram_micro/inbound_base_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject

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_nameObject



13
14
15
# File 'lib/ingram_micro/inbound_base_element.rb', line 13

def transaction_name
  return @hash['message']['message_header']['transaction_name']
end