Class: Cartography::PlacementConstraint
- Inherits:
-
Object
- Object
- Cartography::PlacementConstraint
- Defined in:
- lib/cartography/placement_constraint.rb
Overview
PlacementConstraint holds data for the current state of a specific placement constraint.
Defined Under Namespace
Classes: PlacementError
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#cluster ⇒ Object
readonly
Returns the value of attribute cluster.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#keyspace ⇒ Object
readonly
Returns the value of attribute keyspace.
-
#placement_constraint_id ⇒ Object
readonly
Returns the value of attribute placement_constraint_id.
-
#placement_error ⇒ Object
readonly
Returns the value of attribute placement_error.
-
#sites ⇒ Object
readonly
Returns the value of attribute sites.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ PlacementConstraint
constructor
A new instance of PlacementConstraint.
Constructor Details
#initialize(params = {}) ⇒ PlacementConstraint
Returns a new instance of PlacementConstraint.
15 16 17 18 19 20 21 22 23 |
# File 'lib/cartography/placement_constraint.rb', line 15 def initialize(params = {}) @placement_constraint_id = params["PlacementConstraintID"] @account_id = params["AccountID"] @cluster = params["Cluster"] @environment = params["Environment"] @keyspace = params["Keyspace"] @placement_error = PlacementError.new(params["PlacementError"]) @sites = params["Sites"] end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
7 8 9 |
# File 'lib/cartography/placement_constraint.rb', line 7 def account_id @account_id end |
#cluster ⇒ Object (readonly)
Returns the value of attribute cluster.
7 8 9 |
# File 'lib/cartography/placement_constraint.rb', line 7 def cluster @cluster end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
7 8 9 |
# File 'lib/cartography/placement_constraint.rb', line 7 def environment @environment end |
#keyspace ⇒ Object (readonly)
Returns the value of attribute keyspace.
7 8 9 |
# File 'lib/cartography/placement_constraint.rb', line 7 def keyspace @keyspace end |
#placement_constraint_id ⇒ Object (readonly)
Returns the value of attribute placement_constraint_id.
7 8 9 |
# File 'lib/cartography/placement_constraint.rb', line 7 def placement_constraint_id @placement_constraint_id end |
#placement_error ⇒ Object (readonly)
Returns the value of attribute placement_error.
7 8 9 |
# File 'lib/cartography/placement_constraint.rb', line 7 def placement_error @placement_error end |
#sites ⇒ Object (readonly)
Returns the value of attribute sites.
7 8 9 |
# File 'lib/cartography/placement_constraint.rb', line 7 def sites @sites end |