Class: Rails::Hyperdrive::BundlerArtifactDiscovery::Artifact
- Inherits:
-
Struct
- Object
- Struct
- Rails::Hyperdrive::BundlerArtifactDiscovery::Artifact
- Defined in:
- lib/rails/hyperdrive/bundler_artifact_discovery.rb
Instance Attribute Summary collapse
-
#artifact_type ⇒ Object
Returns the value of attribute artifact_type.
-
#body ⇒ Object
Returns the value of attribute body.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#source_gem ⇒ Object
Returns the value of attribute source_gem.
-
#source_root ⇒ Object
Returns the value of attribute source_root.
-
#spec_version ⇒ Object
Returns the value of attribute spec_version.
-
#support_files ⇒ Object
Returns the value of attribute support_files.
-
#support_root ⇒ Object
Returns the value of attribute support_root.
-
#target_gem ⇒ Object
Returns the value of attribute target_gem.
-
#versions ⇒ Object
Returns the value of attribute versions.
Instance Method Summary collapse
Instance Attribute Details
#artifact_type ⇒ Object
Returns the value of attribute artifact_type
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def artifact_type @artifact_type end |
#body ⇒ Object
Returns the value of attribute body
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def body @body end |
#description ⇒ Object
Returns the value of attribute description
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def description @description end |
#name ⇒ Object
Returns the value of attribute name
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def name @name end |
#path ⇒ Object
Returns the value of attribute path
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def path @path end |
#source_gem ⇒ Object
Returns the value of attribute source_gem
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def source_gem @source_gem end |
#source_root ⇒ Object
Returns the value of attribute source_root
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def source_root @source_root end |
#spec_version ⇒ Object
Returns the value of attribute spec_version
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def spec_version @spec_version end |
#support_files ⇒ Object
Returns the value of attribute support_files
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def support_files @support_files end |
#support_root ⇒ Object
Returns the value of attribute support_root
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def support_root @support_root end |
#target_gem ⇒ Object
Returns the value of attribute target_gem
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def target_gem @target_gem end |
#versions ⇒ Object
Returns the value of attribute versions
13 14 15 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 13 def versions @versions end |
Instance Method Details
#guideline? ⇒ Boolean
23 24 25 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 23 def guideline? artifact_type == :guideline end |
#skill? ⇒ Boolean
19 20 21 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 19 def skill? artifact_type == :skill end |
#to_h ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 27 def to_h { name: name, description: description, target_gem: target_gem, versions: versions, artifact_type: artifact_type, source_gem: source_gem, path: path, spec_version: spec_version } end |