Module: KillBillClient::Model::AuditLogWithHistoryHelper::ClassMethods

Defined in:
lib/killbill_client/models/helpers/audit_log_with_history_helper.rb

Instance Method Summary collapse

Instance Method Details

#has_audit_logs_with_history(url_prefix, id_alias) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/killbill_client/models/helpers/audit_log_with_history_helper.rb', line 6

def has_audit_logs_with_history(url_prefix, id_alias)
  define_method('audit_logs_with_history') do |*args|
    options = args[0] || {}

    self.class.get "#{url_prefix}/#{send(id_alias)}/auditLogsWithHistory",
                   {},
                   options,
                   AuditLog
  end
end