Class: Chronicle::ETL::Registry::PluginRegistration

Inherits:
Object
  • Object
show all
Defined in:
lib/chronicle/etl/registry/plugin_registration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil) {|_self| ... } ⇒ PluginRegistration

Returns a new instance of PluginRegistration.

Yields:

  • (_self)

Yield Parameters:



7
8
9
10
11
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 7

def initialize(name = nil)
  @installed = false
  @name = name
  yield self if block_given?
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 5

def description
  @description
end

#gemObject

Returns the value of attribute gem.



5
6
7
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 5

def gem
  @gem
end

#gemspecObject

Returns the value of attribute gemspec.



5
6
7
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 5

def gemspec
  @gemspec
end

#installedObject

Returns the value of attribute installed.



5
6
7
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 5

def installed
  @installed
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 5

def name
  @name
end

#versionObject

Returns the value of attribute version.



5
6
7
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 5

def version
  @version
end

Instance Method Details

#installed?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/chronicle/etl/registry/plugin_registration.rb', line 13

def installed?
  @installed || false
end