Class: Timeline::ExtractEventsService

Inherits:
Itsf::Services::V2::Service::Base
  • Object
show all
Defined in:
app/services/timeline/extract_events_service.rb

Defined Under Namespace

Classes: Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#description_methodObject

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_methodObject

Returns the value of attribute timestamp_method.



9
10
11
# File 'app/services/timeline/extract_events_service.rb', line 9

def timestamp_method
  @timestamp_method
end

#title_methodObject

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_workObject



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