Class: Decidim::Conferences::ConferenceProgramMeetingsByDay
- Inherits:
-
Query
- Object
- Query
- Decidim::Conferences::ConferenceProgramMeetingsByDay
- Defined in:
- app/queries/decidim/conferences/conference_program_meetings_by_day.rb
Overview
This query class filters meetings for component and day
Instance Method Summary collapse
-
#initialize(component, day, user = nil) ⇒ ConferenceProgramMeetingsByDay
constructor
A new instance of ConferenceProgramMeetingsByDay.
- #query ⇒ Object
Constructor Details
#initialize(component, day, user = nil) ⇒ ConferenceProgramMeetingsByDay
Returns a new instance of ConferenceProgramMeetingsByDay.
7 8 9 10 11 |
# File 'app/queries/decidim/conferences/conference_program_meetings_by_day.rb', line 7 def initialize(component, day, user = nil) @component = component @day = day @user = user end |
Instance Method Details
#query ⇒ Object
13 14 15 16 17 |
# File 'app/queries/decidim/conferences/conference_program_meetings_by_day.rb', line 13 def query Decidim::Query.merge( ConferenceProgramMeetings.new(@component, @user) ).query.where(start_time: @day.all_day).order(start_time: :asc) end |