class LibTAD::DateCalculator::BusinessHoliday
A holiday event which occurs in a requested period.
Attributes
count[R]
@return [Integer] The number of holidays in the results.
list[R]
@return [Array<::LibTAD::Holiday::Holiday>] Holidays
which occur in the requested period.
type[R]
@return [String] Either included or excluded, specifying whether or not the holidays in the result array were included or excluded when queried.
Public Class Methods
new(hash)
click to toggle source
# File lib/types/date_calculator/business_holiday.rb, line 18 def initialize(hash) @type = hash.fetch('type', nil) @count = hash.fetch('count', nil) @list = hash.fetch('list', nil) &.map { |e| ::LibTAD::Holidays::Holiday.new(e) } end