class Object

Public Instance Methods

application_attendee_name(attendee) click to toggle source

Application attendee name to resolve from attendee object in your view. This is an optional parameter and configure it depending on your application. @api protected @param [Hash] meeting Attendee JSON object as hash @return [String] Appication attendee name to resolve from attendee object in your view

# File lib/generators/templates/controllers/meetings_controller.rb, line 142
def application_attendee_name(attendee)
  # attendee[:Attendee][:ApplicationMetadata][:User][:name]
  attendee[:Attendee][:AttendeeId]
end
attendee_request_id() click to toggle source

@api protected @return [String] Unique attendee request id to identify attendee by Amazon Chime

# File lib/generators/templates/controllers/meetings_controller.rb, line 33
def attendee_request_id
  # "User-#{current_user.id}"
  "default"
end
attendee_resource_path(meeting_id, attendee_id, params = {}) click to toggle source

Path for attendees#show action such as attendee_path(meeting_id, attendee_id). Configure it depending on your application routes. @api protected @param [String] meeting_id Meeting id @param [String] attendee_id Attendee id @param [Hash] params Request parameters for path method @return [String] Path for attendees#index action such as attendees_path(meeting_id)

# File lib/generators/templates/controllers/meetings_controller.rb, line 74
def attendee_resource_path(meeting_id, attendee_id, params = {})
  <%= @path_name_prefix %>meeting_attendee_path(<%= @path_args_prefix %>meeting_id, attendee_id, params)
end
attendee_resources_path(meeting_id, params = {} click to toggle source

Path for attendees#index action such as attendees_path(meeting_id). Configure it depending on your application routes. @api protected @param [String] meeting_id Meeting id @param [Hash] params Request parameters for path method @return [String] Path for attendees#index action such as attendees_path(meeting_id)

# File lib/generators/templates/controllers/meetings_controller.rb, line 63
def attendee_resources_path(meeting_id, params = {})
  <%= @path_name_prefix %>meeting_attendees_path(<%= @path_args_prefix %>meeting_id, params)
end
meeting_resource_path(meeting_id, params = {}) click to toggle source

Path for meetings#show action such as meeting_path(meeting_id). Configure it depending on your application routes. @api protected @param [String] meeting_id Meeting id @param [Hash] params Request parameters for path method @return [String] Path for meetings#show action such as meeting_path(meeting_id)

# File lib/generators/templates/controllers/meetings_controller.rb, line 53
def meeting_resource_path(meeting_id, params = {})
  <%= @path_name_prefix %>meeting_path(<%= @path_args_prefix %>meeting_id, params)
end
meeting_resources_path(params = {}) click to toggle source

Path for meetings#index action such as meetings_path. Configure it depending on your application routes. @api protected @param [Hash] params Request parameters for path method @return [String] Path for meetings#index action such as meetings_path

# File lib/generators/templates/controllers/meetings_controller.rb, line 43
def meeting_resources_path(params = {})
  <%= @path_name_prefix %>meetings_path(<%= @path_args_prefix %>params)
end