Class: EcsAutoscalingScheduler::Cli::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/ecs_autoscaling_scheduler/cli/option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ Option

Returns a new instance of Option.



15
16
17
18
19
20
21
22
23
24
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 15

def initialize(**kwargs)
  @command               = kwargs[:command]
  @cluster_name          = kwargs[:cluster_name]
  @service_name          = kwargs[:service_name]
  @timezone              = kwargs[:timezone]
  @schedule              = kwargs[:schedule]
  @min_capacity          = kwargs[:min_capacity]
  @max_capacity          = kwargs[:max_capacity]
  @scheduled_action_name = kwargs[:scheduled_action_name]
end

Instance Attribute Details

#cluster_nameObject (readonly)

Returns the value of attribute cluster_name.



7
8
9
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 7

def cluster_name
  @cluster_name
end

#commandObject (readonly)

Returns the value of attribute command.



6
7
8
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 6

def command
  @command
end

#max_capacityObject (readonly)

Returns the value of attribute max_capacity.



12
13
14
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 12

def max_capacity
  @max_capacity
end

#min_capacityObject (readonly)

Returns the value of attribute min_capacity.



11
12
13
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 11

def min_capacity
  @min_capacity
end

#scheduleObject (readonly)

Returns the value of attribute schedule.



10
11
12
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 10

def schedule
  @schedule
end

#scheduled_action_nameObject (readonly)

Returns the value of attribute scheduled_action_name.



13
14
15
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 13

def scheduled_action_name
  @scheduled_action_name
end

#service_nameObject (readonly)

Returns the value of attribute service_name.



8
9
10
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 8

def service_name
  @service_name
end

#timezoneObject (readonly)

Returns the value of attribute timezone.



9
10
11
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 9

def timezone
  @timezone
end