Class: Ashby::CloseReasons

Inherits:
Client
  • Object
show all
Defined in:
lib/ashby/close_reasons.rb

Overview

Ashby::CloseReasons provides access to close reason related functionality in the Ashby API.

Includes support for:

- Fetching all close reasons (with pagination)

Example:

Ashby::CloseReasons.all

Constant Summary

Constants inherited from Client

Ashby::Client::API_URL

Class Method Summary collapse

Methods inherited from Client

build_url, headers, paginated_post, post

Class Method Details

.allObject

Fetches all openings with pagination support



14
15
16
17
# File 'lib/ashby/close_reasons.rb', line 14

def self.all
  response = post('closeReason.list')
  response['results']
end