Method: ChefAPI::Resource::Base.inspect

Defined in:
lib/chef-api/resources/base.rb

.inspectString

The detailed string representation of this class, including the full schema definition.

Examples:

for the Bacon class

Bacon.inspect #=> "Resource::Bacon(id, description, ...)"

Returns:

  • (String)


436
437
438
# File 'lib/chef-api/resources/base.rb', line 436

def inspect
  "#{classname}(#{schema.attributes.keys.join(", ")})"
end