Class: Casper::Entity::ActionThresholds

Inherits:
Object
  • Object
show all
Defined in:
lib/entity/action_thresholds.rb

Overview

Note:

The minimum weight thresholds that have to be met when executing an action of a certain type.

Instance Method Summary collapse

Constructor Details

#initialize(deployment, key_management) ⇒ ActionThresholds

Returns a new instance of ActionThresholds.

Parameters:

  • deployment (Integer)

    Threshold required to perform deployment actions.

  • key_management (Integer)

    Threshold required to perform key management actions.



9
10
11
12
# File 'lib/entity/action_thresholds.rb', line 9

def initialize(deployment, key_management)
  @deployment = deployment
  @key_management = key_management
end

Instance Method Details

#get_deploymentInteger

Returns deployment.

Returns:

  • (Integer)

    deployment



15
16
17
# File 'lib/entity/action_thresholds.rb', line 15

def get_deployment
  @deployment
end

#get_key_managementInteger

Returns key_management.

Returns:

  • (Integer)

    key_management



20
21
22
# File 'lib/entity/action_thresholds.rb', line 20

def get_key_management
  @key_management
end