Class: Inspec::RunData::Profile::Dependency
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Profile::Dependency
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/profile.rb
Overview
Good candidate for keyword_init, but that is not in 2.4
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.
57 58 59 |
# File 'lib/inspec/run_data/profile.rb', line 57 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
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def branch @branch end |
#commit ⇒ Object
Returns the value of attribute commit
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def commit @commit end |
#compliance ⇒ Object
Returns the value of attribute compliance
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def compliance @compliance end |
#git ⇒ Object
Returns the value of attribute git
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def git @git end |
#name ⇒ Object
Returns the value of attribute name
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def name @name end |
#path ⇒ Object
Returns the value of attribute path
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def path @path end |
#relative_path ⇒ Object
Returns the value of attribute relative_path
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def relative_path @relative_path end |
#status ⇒ Object
Returns the value of attribute status
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def status @status end |
#status_message ⇒ Object
Returns the value of attribute status_message
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def @status_message end |
#supermarket ⇒ Object
Returns the value of attribute supermarket
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def supermarket @supermarket end |
#tag ⇒ Object
Returns the value of attribute tag
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def tag @tag end |
#url ⇒ Object
Returns the value of attribute url
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def url @url end |
#version ⇒ Object
Returns the value of attribute version
53 54 55 |
# File 'lib/inspec/run_data/profile.rb', line 53 def version @version end |