Class: Pod::Source::AbstractDataProvider
- Inherits:
-
Object
- Object
- Pod::Source::AbstractDataProvider
- Defined in:
- lib/cocoapods-core/source/abstract_data_provider.rb
Overview
Defines the required and the optional methods of a data provider.
Direct Known Subclasses
Required methods collapse
-
#name ⇒ String
The name of the source.
-
#pods ⇒ Array<String>
The list of the name of all the Pods known to the Source.
-
#specification(_name, _version) ⇒ Specification
The specification for a given version of a Pod.
-
#specification_contents(_name, _version) ⇒ Specification
The contents of the specification for a given version of a Pod.
-
#type ⇒ String
The user friendly type of the source.
-
#url ⇒ String
The URL of the source.
-
#versions(_name) ⇒ Array<String>
All the available versions of a given Pod, sorted from highest to lowest.
Instance Method Details
#name ⇒ String
Returns The name of the source.
13 14 15 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 13 def name raise StandardError, 'Abstract method.' end |
#pods ⇒ Array<String>
Returns The list of the name of all the Pods known to the Source.
32 33 34 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 32 def pods raise StandardError, 'Abstract method.' end |
#specification(_name, _version) ⇒ Specification
Returns The specification for a given version of a Pod.
54 55 56 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 54 def specification(_name, _version) raise StandardError, 'Abstract method.' end |
#specification_contents(_name, _version) ⇒ Specification
Returns The contents of the specification for a given version of a Pod.
67 68 69 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 67 def specification_contents(_name, _version) raise StandardError, 'Abstract method.' end |
#type ⇒ String
Returns The user friendly type of the source.
25 26 27 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 25 def type raise StandardError, 'Abstract method.' end |
#url ⇒ String
Returns The URL of the source.
19 20 21 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 19 def url raise StandardError, 'Abstract method.' end |
#versions(_name) ⇒ Array<String>
Returns All the available versions of a given Pod, sorted from highest to lowest.
42 43 44 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 42 def versions(_name) raise StandardError, 'Abstract method.' end |