Class: TenderSummary::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/tender_summary/mailer.rb

Instance Method Summary collapse

Instance Method Details

#pending(to, from = nil) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/tender_summary/mailer.rb', line 7

def pending(to, from = nil)
  discussions = TenderSummary::TenderApi.discussions(:state => :pending)

  from       from
  recipients to
  subject    "Tender pending discussions summary"
  body       :discussions => discussions['discussions'],
             :site => TenderSummary::TenderApi.site,
             :name => TenderSummary::TenderApi.site['name']
end