Class: PaynetEasy::PaynetEasyApi::PaymentData::Data

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/paynet_easy/paynet_easy_api/payment_data/data.rb

Instance Method Summary collapse

Constructor Details

#initialize(data_hash = {}, fail_on_unknown_field = true) ⇒ Data

Returns a new instance of Data.



7
8
9
10
11
# File 'lib/paynet_easy/paynet_easy_api/payment_data/data.rb', line 7

def initialize(data_hash = {}, fail_on_unknown_field = true)
  data_hash.each do |property_path, value|
    PropertyAccessor.set_value self, property_path, value, fail_on_unknown_field
  end
end