Class: Igniter::Contracts::Assembly::PackManifest::RegistryContract

Inherits:
Struct
  • Object
show all
Defined in:
lib/igniter/contracts/assembly/pack_manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(registry:, key:) ⇒ RegistryContract

Returns a new instance of RegistryContract.



8
9
10
11
12
13
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 8

def initialize(registry:, key:)
  super(
    registry: registry.to_sym,
    key: key.to_sym
  )
end

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



7
8
9
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 7

def key
  @key
end

#registryObject

Returns the value of attribute registry

Returns:

  • (Object)

    the current value of registry



7
8
9
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 7

def registry
  @registry
end