Class: Decidim::Meetings::Admin::ExportMeetingRegistrations
- Inherits:
 - 
      Command
      
        
- Object
 - Command
 - Decidim::Meetings::Admin::ExportMeetingRegistrations
 
 
- Defined in:
 - app/commands/decidim/meetings/admin/export_meeting_registrations.rb
 
Overview
This command is executed when the user exports the registrations of a Meeting from the admin panel.
Instance Method Summary collapse
- 
  
    
      #call  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Exports the meeting registrations.
 - 
  
    
      #initialize(meeting, format, current_user)  ⇒ ExportMeetingRegistrations 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
meeting - The current instance of the page to be closed.
 
Constructor Details
#initialize(meeting, format, current_user) ⇒ ExportMeetingRegistrations
meeting - The current instance of the page to be closed. format - a string representing the export format current_user - the user performing the action
      12 13 14 15 16  | 
    
      # File 'app/commands/decidim/meetings/admin/export_meeting_registrations.rb', line 12 def initialize(meeting, format, current_user) @meeting = meeting @format = format @current_user = current_user end  | 
  
Instance Method Details
#call ⇒ Object
Exports the meeting registrations.
Broadcasts :ok if successful, :invalid otherwise.
      21 22 23  | 
    
      # File 'app/commands/decidim/meetings/admin/export_meeting_registrations.rb', line 21 def call broadcast(:ok, export_data) end  |