Class: Rails::Hyperdrive::BundlerArtifactDiscovery::Artifact

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails/hyperdrive/bundler_artifact_discovery.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#artifact_typeObject

Returns the value of attribute artifact_type

Returns:

  • (Object)

    the current value of artifact_type



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def artifact_type
  @artifact_type
end

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def body
  @body
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def description
  @description
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def path
  @path
end

#source_gemObject

Returns the value of attribute source_gem

Returns:

  • (Object)

    the current value of source_gem



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def source_gem
  @source_gem
end

#source_rootObject

Returns the value of attribute source_root

Returns:

  • (Object)

    the current value of source_root



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def source_root
  @source_root
end

#spec_versionObject

Returns the value of attribute spec_version

Returns:

  • (Object)

    the current value of spec_version



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def spec_version
  @spec_version
end

#support_filesObject

Returns the value of attribute support_files

Returns:

  • (Object)

    the current value of support_files



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def support_files
  @support_files
end

#target_gemObject

Returns the value of attribute target_gem

Returns:

  • (Object)

    the current value of target_gem



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def target_gem
  @target_gem
end

#versionsObject

Returns the value of attribute versions

Returns:

  • (Object)

    the current value of versions



11
12
13
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 11

def versions
  @versions
end

Instance Method Details

#guideline?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 21

def guideline?
  artifact_type == :guideline
end

#skill?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 17

def skill?
  artifact_type == :skill
end

#to_hObject



25
26
27
28
29
30
31
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 25

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