Class: Inspec::RunData::Profile::Dependency
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Profile::Dependency
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/profile.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#compliance ⇒ Object
Returns the value of attribute compliance.
-
#git ⇒ Object
Returns the value of attribute git.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#relative_path ⇒ Object
Returns the value of attribute relative_path.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_message ⇒ Object
Returns the value of attribute status_message.
-
#supermarket ⇒ Object
Returns the value of attribute supermarket.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(raw_dep_data) ⇒ Dependency
constructor
A new instance of Dependency.
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_dep_data) ⇒ Dependency
Returns a new instance of Dependency.
56 57 58 |
# File 'lib/inspec/run_data/profile.rb', line 56 def initialize(raw_dep_data) %i{name path status status_message git url supermarket compliance branch tag commit version relative_path}.each { |f| self[f] = raw_dep_data[f] } end |
Instance Attribute Details
#branch ⇒ Object
Returns the value of attribute branch
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def branch @branch end |
#commit ⇒ Object
Returns the value of attribute commit
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def commit @commit end |
#compliance ⇒ Object
Returns the value of attribute compliance
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def compliance @compliance end |
#git ⇒ Object
Returns the value of attribute git
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def git @git end |
#name ⇒ Object
Returns the value of attribute name
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def name @name end |
#path ⇒ Object
Returns the value of attribute path
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def path @path end |
#relative_path ⇒ Object
Returns the value of attribute relative_path
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def relative_path @relative_path end |
#status ⇒ Object
Returns the value of attribute status
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def status @status end |
#status_message ⇒ Object
Returns the value of attribute status_message
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def @status_message end |
#supermarket ⇒ Object
Returns the value of attribute supermarket
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def supermarket @supermarket end |
#tag ⇒ Object
Returns the value of attribute tag
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def tag @tag end |
#url ⇒ Object
Returns the value of attribute url
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def url @url end |
#version ⇒ Object
Returns the value of attribute version
52 53 54 |
# File 'lib/inspec/run_data/profile.rb', line 52 def version @version end |