Class: Timeline::ExtractEventsService
- Inherits:
-
Itsf::Services::V2::Service::Base
- Object
- Itsf::Services::V2::Service::Base
- Timeline::ExtractEventsService
- Defined in:
- app/services/timeline/extract_events_service.rb
Defined Under Namespace
Classes: Response
Instance Attribute Summary collapse
-
#description_method ⇒ Object
Returns the value of attribute description_method.
-
#resources ⇒ Object
writeonly
Sets the attribute resources.
-
#timestamp_method ⇒ Object
Returns the value of attribute timestamp_method.
-
#title_method ⇒ Object
Returns the value of attribute title_method.
Instance Method Summary collapse
Instance Attribute Details
#description_method ⇒ Object
Returns the value of attribute description_method.
9 10 11 |
# File 'app/services/timeline/extract_events_service.rb', line 9 def description_method @description_method end |
#resources=(value) ⇒ Object
Sets the attribute resources
9 10 11 |
# File 'app/services/timeline/extract_events_service.rb', line 9 def resources=(value) @resources = value end |
#timestamp_method ⇒ Object
Returns the value of attribute timestamp_method.
9 10 11 |
# File 'app/services/timeline/extract_events_service.rb', line 9 def end |
#title_method ⇒ Object
Returns the value of attribute title_method.
9 10 11 |
# File 'app/services/timeline/extract_events_service.rb', line 9 def title_method @title_method end |
Instance Method Details
#do_work ⇒ Object
11 12 13 14 15 |
# File 'app/services/timeline/extract_events_service.rb', line 11 def do_work return response unless valid? response.events = extract_events respond end |