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.11.13 app/services/forest_liana/users_getter.rb
forest_liana-2.11.12 app/services/forest_liana/users_getter.rb
forest_liana-2.11.11 app/services/forest_liana/users_getter.rb
forest_liana-2.11.10 app/services/forest_liana/users_getter.rb
forest_liana-2.11.9 app/services/forest_liana/users_getter.rb
forest_liana-2.11.8 app/services/forest_liana/users_getter.rb
forest_liana-2.11.7 app/services/forest_liana/users_getter.rb
forest_liana-2.11.6 app/services/forest_liana/users_getter.rb
forest_liana-2.11.5 app/services/forest_liana/users_getter.rb
forest_liana-2.11.4 app/services/forest_liana/users_getter.rb
forest_liana-2.11.3 app/services/forest_liana/users_getter.rb
forest_liana-2.11.2 app/services/forest_liana/users_getter.rb
forest_liana-2.11.1 app/services/forest_liana/users_getter.rb
forest_liana-2.11.0 app/services/forest_liana/users_getter.rb
forest_liana-2.10.5 app/services/forest_liana/users_getter.rb
forest_liana-2.10.4 app/services/forest_liana/users_getter.rb
forest_liana-2.10.3 app/services/forest_liana/users_getter.rb
forest_liana-2.10.2 app/services/forest_liana/users_getter.rb
forest_liana-2.10.1 app/services/forest_liana/users_getter.rb
forest_liana-2.10.0 app/services/forest_liana/users_getter.rb