Class: EcsAutoscalingScheduler::Cli::Option
- Inherits:
-
Object
- Object
- EcsAutoscalingScheduler::Cli::Option
- Defined in:
- lib/ecs_autoscaling_scheduler/cli/option.rb
Instance Attribute Summary collapse
-
#cluster_name ⇒ Object
readonly
Returns the value of attribute cluster_name.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#max_capacity ⇒ Object
readonly
Returns the value of attribute max_capacity.
-
#min_capacity ⇒ Object
readonly
Returns the value of attribute min_capacity.
-
#schedule ⇒ Object
readonly
Returns the value of attribute schedule.
-
#scheduled_action_name ⇒ Object
readonly
Returns the value of attribute scheduled_action_name.
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Option
constructor
A new instance of Option.
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_name ⇒ Object (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 |
#command ⇒ Object (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_capacity ⇒ Object (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_capacity ⇒ Object (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 |
#schedule ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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 |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
9 10 11 |
# File 'lib/ecs_autoscaling_scheduler/cli/option.rb', line 9 def timezone @timezone end |