Class: Basecamp::NoopHooks

Inherits:
Object
  • Object
show all
Includes:
Hooks
Defined in:
lib/basecamp/noop_hooks.rb

Overview

No-op implementation of Hooks. Used as the default when no hooks are configured.

Instance Method Summary collapse

Instance Method Details

#on_operation_end(info, result) ⇒ void Originally defined in module Hooks

This method returns an undefined value.

Called when a service operation completes (success or failure).

Parameters:

#on_operation_start(info) ⇒ void Originally defined in module Hooks

This method returns an undefined value.

Called when a service operation starts (e.g., projects.list, todos.create).

Parameters:

#on_paginate(url, page) ⇒ void Originally defined in module Hooks

This method returns an undefined value.

Called when pagination fetches the next page.

Parameters:

  • url (String)

    the next page URL

  • page (Integer)

    the page number

#on_request_end(info, result) ⇒ void Originally defined in module Hooks

This method returns an undefined value.

Called when an HTTP request completes (success or failure).

Parameters:

#on_request_start(info) ⇒ void Originally defined in module Hooks

This method returns an undefined value.

Called when an HTTP request starts.

Parameters:

#on_retry(info, attempt, error, delay) ⇒ void Originally defined in module Hooks

This method returns an undefined value.

Called when a request is retried.

Parameters:

  • info (RequestInfo)

    request information

  • attempt (Integer)

    the next attempt number

  • error (Exception)

    the error that triggered the retry

  • delay (Float)

    seconds until retry