Module: Resend::Logs

Defined in:
lib/resend/logs.rb

Overview

logs api wrapper

Class Method Summary collapse

Class Method Details

.get(log_id = "") ⇒ Object



8
9
10
11
# File 'lib/resend/logs.rb', line 8

def get(log_id = "")
  path = "logs/#{log_id}"
  Resend::Request.new(path, {}, "get").perform
end

.list(params = {}) ⇒ Object



14
15
16
17
# File 'lib/resend/logs.rb', line 14

def list(params = {})
  path = Resend::PaginationHelper.build_paginated_path("logs", params)
  Resend::Request.new(path, {}, "get").perform
end