Class: Mailgun::Log

Inherits:
Object show all
Defined in:
lib/mailgun/log.rb

Instance Method Summary collapse

Constructor Details

#initialize(mailgun, domain) ⇒ Log

Used internally, called from Mailgun::Base



4
5
6
7
# File 'lib/mailgun/log.rb', line 4

def initialize(mailgun, domain)
  @mailgun = mailgun
  @domain = domain
end

Instance Method Details

#list(options = {}) ⇒ Object

List all logs for a given domain

  • domain the domain for which all complaints will listed



11
12
13
# File 'lib/mailgun/log.rb', line 11

def list(options={})
  Mailgun.submit(:get, log_url, options)
end