Class: ConsulPolicy
- Inherits:
-
Object
- Object
- ConsulPolicy
- Defined in:
- lib/puppet/provider/consul_policy/default.rb
Instance Attribute Summary collapse
-
#datacenters ⇒ Object
Returns the value of attribute datacenters.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(id, name, description, datacenters, rules) ⇒ ConsulPolicy
constructor
A new instance of ConsulPolicy.
Constructor Details
#initialize(id, name, description, datacenters, rules) ⇒ ConsulPolicy
Returns a new instance of ConsulPolicy.
133 134 135 136 137 138 139 |
# File 'lib/puppet/provider/consul_policy/default.rb', line 133 def initialize(id, name, description, datacenters, rules) @id = id @name = name @description = description @datacenters = datacenters @rules = rules end |
Instance Attribute Details
#datacenters ⇒ Object
Returns the value of attribute datacenters.
130 131 132 |
# File 'lib/puppet/provider/consul_policy/default.rb', line 130 def datacenters @datacenters end |
#description ⇒ Object
Returns the value of attribute description.
130 131 132 |
# File 'lib/puppet/provider/consul_policy/default.rb', line 130 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
130 131 132 |
# File 'lib/puppet/provider/consul_policy/default.rb', line 130 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
131 132 133 |
# File 'lib/puppet/provider/consul_policy/default.rb', line 131 def name @name end |
#rules ⇒ Object
Returns the value of attribute rules.
130 131 132 |
# File 'lib/puppet/provider/consul_policy/default.rb', line 130 def rules @rules end |