Class: Fastlane::Dependency
- Inherits:
-
Object
- Object
- Fastlane::Dependency
- Defined in:
- lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
readonly
Returns the value of attribute available.
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#latest ⇒ Object
readonly
Returns the value of attribute latest.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, current, available, latest) ⇒ Dependency
constructor
A new instance of Dependency.
- #to_hash ⇒ Object
Constructor Details
#initialize(name, current, available, latest) ⇒ Dependency
Returns a new instance of Dependency.
15 16 17 18 19 20 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb', line 15 def initialize(name, current, available, latest) @name = name @current = current @available = available @latest = latest end |
Instance Attribute Details
#available ⇒ Object (readonly)
Returns the value of attribute available.
12 13 14 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb', line 12 def available @available end |
#current ⇒ Object (readonly)
Returns the value of attribute current.
11 12 13 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb', line 11 def current @current end |
#latest ⇒ Object (readonly)
Returns the value of attribute latest.
13 14 15 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb', line 13 def latest @latest end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb', line 10 def name @name end |
Instance Method Details
#to_hash ⇒ Object
22 23 24 25 26 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb', line 22 def to_hash instance_variables.each_with_object({}) { |var, hash| hash[var.to_s.delete("@").to_sym] = instance_variable_get(var) } end |