Class: ConsulPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/provider/consul_policy/default.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#datacentersObject

Returns the value of attribute datacenters.



130
131
132
# File 'lib/puppet/provider/consul_policy/default.rb', line 130

def datacenters
  @datacenters
end

#descriptionObject

Returns the value of attribute description.



130
131
132
# File 'lib/puppet/provider/consul_policy/default.rb', line 130

def description
  @description
end

#idObject

Returns the value of attribute id.



130
131
132
# File 'lib/puppet/provider/consul_policy/default.rb', line 130

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



131
132
133
# File 'lib/puppet/provider/consul_policy/default.rb', line 131

def name
  @name
end

#rulesObject

Returns the value of attribute rules.



130
131
132
# File 'lib/puppet/provider/consul_policy/default.rb', line 130

def rules
  @rules
end