Class: CoachZed::FeedWriter
- Inherits:
-
Object
- Object
- CoachZed::FeedWriter
- Defined in:
- lib/coach_zed/feed_writer.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(schedule:, start_date:, existing_feed_content: nil, calendar_name: nil) ⇒ FeedWriter
constructor
A new instance of FeedWriter.
Constructor Details
#initialize(schedule:, start_date:, existing_feed_content: nil, calendar_name: nil) ⇒ FeedWriter
Returns a new instance of FeedWriter.
8 9 10 11 12 13 |
# File 'lib/coach_zed/feed_writer.rb', line 8 def initialize(schedule:, start_date:, existing_feed_content: nil, calendar_name: nil) @schedule = schedule @start_date = start_date @existing_feed_content = existing_feed_content @calendar_name = calendar_name end |
Instance Method Details
#build ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/coach_zed/feed_writer.rb', line 15 def build if existing_feed_content append_to_existing_feed(existing_feed_content) else fresh_feed end end |