Class: Spice::Role
Instance Attribute Summary collapse
-
#_rev ⇒ Object
readonly
Returns the value of attribute _rev.
-
#chef_type ⇒ Object
readonly
Returns the value of attribute chef_type.
-
#default_attributes ⇒ Object
readonly
Returns the value of attribute default_attributes.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#env_run_lists ⇒ Object
readonly
Returns the value of attribute env_run_lists.
-
#json_class ⇒ Object
readonly
Returns the value of attribute json_class.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#override_attributes ⇒ Object
readonly
Returns the value of attribute override_attributes.
-
#run_list ⇒ Object
readonly
Returns the value of attribute run_list.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = Mash.new) ⇒ Role
constructor
A new instance of Role.
Methods inherited from Base
#[], attr_reader, get, get_or_new, #id, identity_map, #keys, #update
Constructor Details
#initialize(attrs = Mash.new) ⇒ Role
Returns a new instance of Role.
8 9 10 11 12 |
# File 'lib/spice/role.rb', line 8 def initialize(attrs=Mash.new) super @attrs['json_class'] ||= "Chef::Role" @attrs['chef_type'] ||= 'role' end |
Instance Attribute Details
#_rev ⇒ Object (readonly)
Returns the value of attribute _rev.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def _rev @_rev end |
#chef_type ⇒ Object (readonly)
Returns the value of attribute chef_type.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def chef_type @chef_type end |
#default_attributes ⇒ Object (readonly)
Returns the value of attribute default_attributes.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def default_attributes @default_attributes end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def description @description end |
#env_run_lists ⇒ Object (readonly)
Returns the value of attribute env_run_lists.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def env_run_lists @env_run_lists end |
#json_class ⇒ Object (readonly)
Returns the value of attribute json_class.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def json_class @json_class end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def name @name end |
#override_attributes ⇒ Object (readonly)
Returns the value of attribute override_attributes.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def override_attributes @override_attributes end |
#run_list ⇒ Object (readonly)
Returns the value of attribute run_list.
5 6 7 |
# File 'lib/spice/role.rb', line 5 def run_list @run_list end |