lib/candy_check/play_store/discovery_repository.rb
# Tries to load a cached copy of the discovery API. Me be nil if
# no cached version is available
# @return [Google::APIClient::API]
Tries to load a cached copy of the discovery API. Me be nil if
no cached version is available
Tries to load a cached copy of the discovery API . Me be nil if no cached version is available
def load
        return unless @file_path && File.exist?(@file_path)
        File.open(@file_path, 'rb') do |file|
          return Marshal.load(file)
        end
      end
def load return unless @file_path && File . exist? ( @file_path ) File . open ( @file_path , 'rb' ) do | file | return Marshal . load ( file ) end end
Tries to load a cached copy of the discovery API.
Tries to load a cached copy of the discovery API .
None
Google::APIClient::API