Sha256: 7cb14917173f86f2bc00a04239faf756825292da0a4bdb4f9326044d8ba435a1

Contents?: true

Size: 587 Bytes

Versions: 30

Compression:

Stored size: 587 Bytes

Contents

module ForestLiana
  class UsersGetter < ForestApiRequester
    def initialize(endpoint, rendering_id)
      @uri = URI.parse("#{forest_api_url}/forest/renderings/#{rendering_id}/#{endpoint}")
    end

    def perform
      perform_request
    rescue => exception
      FOREST_LOGGER.error "Cannot retrieve any users for the project you\'re trying to unlock. Forest API seems to be down right now."
      FOREST_LOGGER.error exception
      nil
    end

    private

    def handle_service_response
      raise 'Abstract class method, this method must be implemented.'
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
forest_liana-2.9.2 app/services/forest_liana/users_getter.rb
forest_liana-2.9.1 app/services/forest_liana/users_getter.rb
forest_liana-2.9.0 app/services/forest_liana/users_getter.rb
forest_liana-2.8.6 app/services/forest_liana/users_getter.rb
forest_liana-2.8.5 app/services/forest_liana/users_getter.rb
forest_liana-2.8.4 app/services/forest_liana/users_getter.rb
forest_liana-2.8.3 app/services/forest_liana/users_getter.rb
forest_liana-2.8.2 app/services/forest_liana/users_getter.rb
forest_liana-2.8.1 app/services/forest_liana/users_getter.rb
forest_liana-2.8.0 app/services/forest_liana/users_getter.rb