Class: Awslive::InputPrepareScheduleAction
- Inherits:
-
Object
- Object
- Awslive::InputPrepareScheduleAction
- Defined in:
- lib/awslive-scheduler/input_prepare_schedule_action.rb
Constant Summary collapse
- IMMEDIATE_HASH =
{ :action_name => "action_name", :schedule_action_start_settings => { :immediate_mode_schedule_action_start_settings => {} }, :schedule_action_settings => { :input_prepare_settings => { :input_attachment_name_reference => "input_name" } } }
Instance Method Summary collapse
Instance Method Details
#get_action_id ⇒ Object
22 23 24 |
# File 'lib/awslive-scheduler/input_prepare_schedule_action.rb', line 22 def get_action_id Time.now.to_i end |
#get_immediate_schedule_action(input_ref_name) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/awslive-scheduler/input_prepare_schedule_action.rb', line 15 def get_immediate_schedule_action( input_ref_name) action_hash = IMMEDIATE_HASH.clone action_hash[:action_name] = "#{get_action_id}" action_hash[:schedule_action_settings][:input_prepare_settings][:input_attachment_name_reference] = "#{input_ref_name}" action_hash end |