Class: Dependency::Pod

Inherits:
Object
  • Object
show all
Defined in:
lib/dependencyswapper/pod.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Pod

Returns a new instance of Pod.



10
11
12
13
14
# File 'lib/dependencyswapper/pod.rb', line 10

def initialize(options)
	@name = options.fetch(:name)
	@version = options.fetch(:version)
	@dependencies = Array.new
end

Instance Attribute Details

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



4
5
6
# File 'lib/dependencyswapper/pod.rb', line 4

def dependencies
  @dependencies
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/dependencyswapper/pod.rb', line 4

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



4
5
6
# File 'lib/dependencyswapper/pod.rb', line 4

def version
  @version
end

Class Method Details

.perform(options) ⇒ Object



6
7
8
# File 'lib/dependencyswapper/pod.rb', line 6

def self.perform(options)
	new(options).perform
end