Class: Fastlane::Dependency

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/dependency_manager_outdated/helper/module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#availableObject (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

#currentObject (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

#latestObject (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

#nameObject (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_hashObject



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