Class: DailyFocus::DataGatherer::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/daily_focus/data_gatherer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(employee:, date: Date.current, todays_activities: [], overdue_activities: [], recent_calls: [], open_opportunities: [], recent_orders: [], recent_conversations: [], lapsed_trade_accounts: [], previous_briefing: nil, previous_briefing_date: nil) ⇒ Result

Returns a new instance of Result.



29
30
31
32
33
34
35
36
37
38
# File 'app/services/daily_focus/data_gatherer.rb', line 29

def initialize(
  employee:, date: Date.current,
  todays_activities: [], overdue_activities: [],
  recent_calls: [], open_opportunities: [],
  recent_orders: [], recent_conversations: [],
  lapsed_trade_accounts: [],
  previous_briefing: nil, previous_briefing_date: nil
)
  super
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def date
  @date
end

#employeeObject (readonly)

Returns the value of attribute employee

Returns:

  • (Object)

    the current value of employee



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def employee
  @employee
end

#lapsed_trade_accountsObject (readonly)

Returns the value of attribute lapsed_trade_accounts

Returns:

  • (Object)

    the current value of lapsed_trade_accounts



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def lapsed_trade_accounts
  @lapsed_trade_accounts
end

#open_opportunitiesObject (readonly)

Returns the value of attribute open_opportunities

Returns:

  • (Object)

    the current value of open_opportunities



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def open_opportunities
  @open_opportunities
end

#overdue_activitiesObject (readonly)

Returns the value of attribute overdue_activities

Returns:

  • (Object)

    the current value of overdue_activities



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def overdue_activities
  @overdue_activities
end

#previous_briefingObject (readonly)

Returns the value of attribute previous_briefing

Returns:

  • (Object)

    the current value of previous_briefing



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def previous_briefing
  @previous_briefing
end

#previous_briefing_dateObject (readonly)

Returns the value of attribute previous_briefing_date

Returns:

  • (Object)

    the current value of previous_briefing_date



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def previous_briefing_date
  @previous_briefing_date
end

#recent_callsObject (readonly)

Returns the value of attribute recent_calls

Returns:

  • (Object)

    the current value of recent_calls



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def recent_calls
  @recent_calls
end

#recent_conversationsObject (readonly)

Returns the value of attribute recent_conversations

Returns:

  • (Object)

    the current value of recent_conversations



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def recent_conversations
  @recent_conversations
end

#recent_ordersObject (readonly)

Returns the value of attribute recent_orders

Returns:

  • (Object)

    the current value of recent_orders



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def recent_orders
  @recent_orders
end

#todays_activitiesObject (readonly)

Returns the value of attribute todays_activities

Returns:

  • (Object)

    the current value of todays_activities



16
17
18
# File 'app/services/daily_focus/data_gatherer.rb', line 16

def todays_activities
  @todays_activities
end