Class: Pod::Downloader::Square

Inherits:
Http
  • Object
show all
Defined in:
lib/pod/downloader/square.rb

Overview

Subclass of Pod::Downloader::Http to support downloading files from Square SDK Repository server

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.optionsArray<Symbol>

Returns the options accepted by Square Downloader.

Returns:

  • (Array<Symbol>)

    the options accepted by Square Downloader.



50
51
52
# File 'lib/pod/downloader/square.rb', line 50

def self.options
  super + [:repository]
end

Instance Method Details

#repositoryCocoapodsRepoSq::Repository

Returns Square SDK repository

Returns:



56
57
58
# File 'lib/pod/downloader/square.rb', line 56

def repository
  @repository ||= options.fetch(:repository) { CocoapodsRepoSq::Repository.current }
end