Class: Archiver::Dependency

Inherits:
Hash
  • Object
show all
Defined in:
lib/cocoapods-flutter/native/archive/archive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



24
25
26
# File 'lib/cocoapods-flutter/native/archive/archive.rb', line 24

def name
  @name
end

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



30
31
32
# File 'lib/cocoapods-flutter/native/archive/archive.rb', line 30

def to_hash()
  {:name => name, :version => version}
end