Class: Everlog::Daily
- Inherits:
-
Object
- Object
- Everlog::Daily
- Defined in:
- lib/everlog/app/daily.rb
Instance Method Summary collapse
- #footer(phrase) ⇒ Object
-
#initialize ⇒ Daily
constructor
A new instance of Daily.
- #publish(title, access_token = nil, output = 'local') ⇒ Object
- #push(service, option = {}) ⇒ Object
Constructor Details
#initialize ⇒ Daily
Returns a new instance of Daily.
3 4 5 |
# File 'lib/everlog/app/daily.rb', line 3 def initialize @content = Dom::Entity::Aggregate::DailyReport.new end |
Instance Method Details
#footer(phrase) ⇒ Object
11 12 13 |
# File 'lib/everlog/app/daily.rb', line 11 def phrase @content.(phrase) end |
#publish(title, access_token = nil, output = 'local') ⇒ Object
15 16 17 |
# File 'lib/everlog/app/daily.rb', line 15 def publish(title, access_token = nil, output = 'local') @content.publish(title, access_token, output) end |
#push(service, option = {}) ⇒ Object
7 8 9 |
# File 'lib/everlog/app/daily.rb', line 7 def push(service, option = {}) @content.push(service, option) end |