Method: Wire4Client::TransactionsOutgoingRegister#initialize

Defined in:
lib/wire4_client/models/transactions_outgoing_register.rb

#initialize(attributes = {}) ⇒ TransactionsOutgoingRegister

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/wire4_client/models/transactions_outgoing_register.rb', line 47

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'cancel_return_url')
    self.cancel_return_url = attributes[:'cancel_return_url']
  end

  if attributes.has_key?(:'return_url')
    self.return_url = attributes[:'return_url']
  end

  if attributes.has_key?(:'transactions')
    if (value = attributes[:'transactions']).is_a?(Array)
      self.transactions = value
    end
  end
end