Class: ChangeHealth::Response::TradingPartnersData

Inherits:
Array
  • Object
show all
Defined in:
lib/change_health/response/trading_partner/trading_partners_data.rb

Instance Method Summary collapse

Constructor Details

#initialize(trading_partners) ⇒ TradingPartnersData

Returns a new instance of TradingPartnersData.



6
7
8
9
10
# File 'lib/change_health/response/trading_partner/trading_partners_data.rb', line 6

def initialize(trading_partners)
  super((trading_partners || []).map do |trading_partner|
    ChangeHealth::Response::TradingPartnerData.new(trading_partner)
  end)
end