lib/geoblacklight/metadata.rb
##
# Retrieves metadata from a url source
# @return [Faraday::Response, nil] Faraday::Response or nil if there is a
# connection error
Retrieves metadata from a url source
Retrieves metadata from a url source
def retrieve_metadata
      conn = Faraday.new(url: @reference.endpoint)
      conn.get
    rescue Faraday::Error::ConnectionFailed => error
      Geoblacklight.logger.error error.inspect
      nil
    rescue Faraday::Error::TimeoutError => error
      Geoblacklight.logger.error error.inspect
      nil
    end
def retrieve_metadata conn = Faraday . new ( url : @reference . endpoint ) conn . get rescue Faraday :: Error :: ConnectionFailed => error Geoblacklight . logger . error error . inspect nil rescue Faraday :: Error :: TimeoutError => error Geoblacklight . logger . error error . inspect nil end
Retrieves metadata from a url source
Retrieves metadata from a url source
:Response or nil if there is a connection error
: Response or nil if there is a connection error
Faraday::Response, nil