Class: Every

Inherits:
Object
  • Object
show all
Defined in:
lib/gcalgen/every.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method) ⇒ Every

Returns a new instance of Every.



3
4
5
# File 'lib/gcalgen/every.rb', line 3

def initialize(method)
  @method = method
end

Instance Attribute Details

#businessObject

Returns the value of attribute business.



2
3
4
# File 'lib/gcalgen/every.rb', line 2

def business
  @business
end

#first_flgObject

Returns the value of attribute first_flg.



2
3
4
# File 'lib/gcalgen/every.rb', line 2

def first_flg
  @first_flg
end

#last_flgObject

Returns the value of attribute last_flg.



2
3
4
# File 'lib/gcalgen/every.rb', line 2

def last_flg
  @last_flg
end

#methodObject

Returns the value of attribute method.



2
3
4
# File 'lib/gcalgen/every.rb', line 2

def method
  @method
end

#mmddObject

Returns the value of attribute mmdd.



2
3
4
# File 'lib/gcalgen/every.rb', line 2

def mmdd
  @mmdd
end

#shiftObject

Returns the value of attribute shift.



2
3
4
# File 'lib/gcalgen/every.rb', line 2

def shift
  @shift
end

#weekdayObject

Returns the value of attribute weekday.



2
3
4
# File 'lib/gcalgen/every.rb', line 2

def weekday
  @weekday
end

Instance Method Details

#business_dayObject



23
24
25
# File 'lib/gcalgen/every.rb', line 23

def business_day
  @business = true
end

#firstObject



11
12
13
# File 'lib/gcalgen/every.rb', line 11

def first
  @first_flg = true
end

#lastObject



15
16
17
# File 'lib/gcalgen/every.rb', line 15

def last
  @last_flg = true
end

#shift_enableObject



19
20
21
# File 'lib/gcalgen/every.rb', line 19

def shift_enable
  @shift = true
end

#wday(weekday) ⇒ Object



7
8
9
# File 'lib/gcalgen/every.rb', line 7

def wday(weekday)
  @weekday = weekday
end