class PayzaPayments::Base

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/payza_payments/base.rb, line 7
def initialize(attributes = {})
  if attributes.is_a?(Hash)
    (required_attributes + optional_attributes).each do |key|
      value = attributes[key]
      self.send "#{key}=", value
    end
  end
  attr_missing!
end