alexmchale-commerce-bank-client 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/commercebank.rb +9 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/commercebank.rb
CHANGED
@@ -174,14 +174,21 @@ class CommerceBank
|
|
174
174
|
print(summarize(daily_summary))
|
175
175
|
end
|
176
176
|
|
177
|
+
def text_daily_summary
|
178
|
+
summarize daily_summary
|
179
|
+
end
|
180
|
+
|
181
|
+
def html_daily_summary
|
182
|
+
summarize_html daily_summary
|
183
|
+
end
|
184
|
+
|
177
185
|
def gmail_daily_summary
|
178
186
|
subject = "Daily Summary"
|
179
|
-
summary = summarize_html(daily_summary)
|
180
187
|
|
181
188
|
username = @config['GMail Username']
|
182
189
|
password = @config['GMail Password']
|
183
190
|
|
184
|
-
GMail.new(username, password).send(username, subject,
|
191
|
+
GMail.new(username, password).send(username, subject, html_daily_summary, 'text/html')
|
185
192
|
end
|
186
193
|
|
187
194
|
def gmail_monthly_summary
|