Holiday Regions

List all possible holiday regions

SDK Method

Files::HolidayRegion.get_supported

Return Object

List<HolidayRegion>

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

begin
  holiday_regions = Files::HolidayRegion.get_supported
  holiday_regions.auto_paging_each do |holiday_region|
    # Operate on holiday_region
  end
rescue Files::NotAuthenticatedError => e
  puts "Authentication Error Occurred (#{e.class.to_s}): " + e.message
rescue Files::Error => e
  puts "Unknown Error Occurred (#{e.class.to_s}): " + e.message
end

The HolidayRegion Object

Some of the methods above return a HolidayRegion object. The attributes of this object are listed below.

AttributeDescription
code
string
The code representing a region
name
string
The name of the region