Module: Inspec::Backend::Base

Defined in:
lib/inspec/backend.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#profileObject

Returns the value of attribute profile.



11
12
13
# File 'lib/inspec/backend.rb', line 11

def profile
  @profile
end

Instance Method Details

#inspectObject

Ruby internal for pretty-printing a summary for this class



26
27
28
# File 'lib/inspec/backend.rb', line 26

def inspect
  "Inspec::Backend::Class @transport=#{backend.class}"
end

#to_sObject

Ruby internal for printing a nice name for this class



21
22
23
# File 'lib/inspec/backend.rb', line 21

def to_s
  'Inspec::Backend::Class'
end

#versionString

Provide a shorthand to retrieve the inspec version from within a profile

Returns:

  • (String)

    inspec version



16
17
18
# File 'lib/inspec/backend.rb', line 16

def version
  Inspec::VERSION
end