Class: Spice::Client

Inherits:
Base
  • Object
show all
Defined in:
lib/spice/client.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, get, get_or_new, #id, identity_map, #keys, #update

Constructor Details

#initialize(attrs = Mash.new) ⇒ Client

Returns a new instance of 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

#_revObject (readonly)

Returns the value of attribute _rev


5
6
7
# File 'lib/spice/client.rb', line 5

def _rev
  @_rev
end

#adminObject (readonly)

Returns the value of attribute admin


5
6
7
# File 'lib/spice/client.rb', line 5

def admin
  @admin
end

#nameObject (readonly)

Returns the value of attribute name


5
6
7
# File 'lib/spice/client.rb', line 5

def name
  @name
end

#private_keyObject (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_keyObject (readonly)

Returns the value of attribute public_key


5
6
7
# File 'lib/spice/client.rb', line 5

def public_key
  @public_key
end