class LibTAD::DateCalculator::Weekdays

The spread of excluded or included weekdays.

Attributes

count[R]

@return [Integer] How many days in total have been counted.

fri[R]

@return [Integer] Count for Fridays.

mon[R]

@return [Integer] Count for Mondays.

sat[R]

@return [Integer] Count for Saturdays.

sun[R]

@return [Integer] Count for Sundays.

thu[R]

@return [Integer] Count for Thursdays.

tue[R]

@return [Integer] Count for Tuesdays.

type[R]

@return [String] Specifies whether or not the weekdays counted were part of an included or excluded filter.

wed[R]

@return [Integer] Count for Wednesdays.

Public Class Methods

new(hash) click to toggle source
# File lib/types/date_calculator/weekdays.rb, line 41
def initialize(hash)
  @type = hash.fetch('type', nil)
  @count = hash.fetch('count', nil)
  @mon = hash.fetch('mon', nil)
  @tue = hash.fetch('tue', nil)
  @wed = hash.fetch('wed', nil)
  @thu = hash.fetch('thu', nil)
  @fri = hash.fetch('fri', nil)
  @sat = hash.fetch('sat', nil)
  @sun = hash.fetch('sun', nil)
end