Class: FlutterRb::Podspec

Inherits:
Object
  • Object
show all
Defined in:
lib/flutter_rb/project/specs/ios/podspec.rb

Overview

Represents a parsed Podspec file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, name, version, authors, source) ⇒ Podspec

Initializes a new instance of Podspec.

Parameters:

  • path (String)

    The path to the Podspec file.

  • name (String)

    The name of the Podspec.

  • version (String)

    The version of the Podspec.

  • authors (Array<String>)

    The authors of the Podspec.

  • source (String)

    The source of the Podspec.



15
16
17
18
19
20
21
# File 'lib/flutter_rb/project/specs/ios/podspec.rb', line 15

def initialize(path, name, version, authors, source)
  @path = path
  @name = name
  @version = version
  @authors = authors
  @source = source
end

Instance Attribute Details

#authorsArray<String> (readonly)

Returns the authors of the Podspec.

Returns:

  • (Array<String>)

    The authors of the Podspec.



41
42
43
# File 'lib/flutter_rb/project/specs/ios/podspec.rb', line 41

def authors
  @authors
end

#nameString (readonly)

Returns the name of the Podspec.

Returns:

  • (String)

    The name of the Podspec.



31
32
33
# File 'lib/flutter_rb/project/specs/ios/podspec.rb', line 31

def name
  @name
end

#pathString (readonly)

Returns the path to the Podspec file.

Returns:

  • (String)

    The path to the Podspec file.



26
27
28
# File 'lib/flutter_rb/project/specs/ios/podspec.rb', line 26

def path
  @path
end

#sourceString (readonly)

Returns the source of the Podspec.

Returns:

  • (String)

    The source of the Podspec.



46
47
48
# File 'lib/flutter_rb/project/specs/ios/podspec.rb', line 46

def source
  @source
end

#versionString (readonly)

Returns the version of the Podspec.

Returns:

  • (String)

    The version of the Podspec.



36
37
38
# File 'lib/flutter_rb/project/specs/ios/podspec.rb', line 36

def version
  @version
end