Class: Archiver::Dependency
- Inherits:
-
Hash
- Object
- Hash
- Archiver::Dependency
- Defined in:
- lib/cocoapods-flutter/native/archive/archive.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name, version) ⇒ Dependency
constructor
A new instance of Dependency.
- #to_hash ⇒ Object
Constructor Details
#initialize(name, version) ⇒ Dependency
Returns a new instance of Dependency.
26 27 28 29 |
# File 'lib/cocoapods-flutter/native/archive/archive.rb', line 26 def initialize(name, version) @name = name @version = version end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
24 25 26 |
# File 'lib/cocoapods-flutter/native/archive/archive.rb', line 24 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
25 26 27 |
# File 'lib/cocoapods-flutter/native/archive/archive.rb', line 25 def version @version end |
Instance Method Details
#to_hash ⇒ Object
30 31 32 |
# File 'lib/cocoapods-flutter/native/archive/archive.rb', line 30 def to_hash() {:name => name, :version => version} end |