Class: Dependency::Pod
- Inherits:
-
Object
- Object
- Dependency::Pod
- Defined in:
- lib/dependencyswapper/pod.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Pod
constructor
A new instance of Pod.
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() @name = .fetch(:name) @version = .fetch(:version) @dependencies = Array.new end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
4 5 6 |
# File 'lib/dependencyswapper/pod.rb', line 4 def dependencies @dependencies end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/dependencyswapper/pod.rb', line 4 def name @name end |
#version ⇒ Object (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() new().perform end |