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