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.
-
#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.
26 27 28 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 26 def pods raise StandardError, 'Abstract method.' end |
#specification(name, version) ⇒ Specification
Returns The specification for a given version of a Pod.
48 49 50 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 48 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.
61 62 63 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 61 def specification_contents(name, version) raise StandardError, 'Abstract method.' end |
#type ⇒ String
Returns The user friendly type of the source.
19 20 21 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 19 def type raise StandardError, 'Abstract method.' end |
#versions(name) ⇒ Array<String>
Returns All the available versions of a given Pod, sorted from highest to lowest.
36 37 38 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 36 def versions(name) raise StandardError, 'Abstract method.' end |