Class: Every
- Inherits:
-
Object
- Object
- Every
- Defined in:
- lib/gcalgen/every.rb
Instance Attribute Summary collapse
-
#business ⇒ Object
Returns the value of attribute business.
-
#first_flg ⇒ Object
Returns the value of attribute first_flg.
-
#last_flg ⇒ Object
Returns the value of attribute last_flg.
-
#method ⇒ Object
Returns the value of attribute method.
-
#mmdd ⇒ Object
Returns the value of attribute mmdd.
-
#shift ⇒ Object
Returns the value of attribute shift.
-
#weekday ⇒ Object
Returns the value of attribute weekday.
Instance Method Summary collapse
- #business_day ⇒ Object
- #first ⇒ Object
-
#initialize(method) ⇒ Every
constructor
A new instance of Every.
- #last ⇒ Object
- #shift_enable ⇒ Object
- #wday(weekday) ⇒ Object
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
#business ⇒ Object
Returns the value of attribute business.
2 3 4 |
# File 'lib/gcalgen/every.rb', line 2 def business @business end |
#first_flg ⇒ Object
Returns the value of attribute first_flg.
2 3 4 |
# File 'lib/gcalgen/every.rb', line 2 def first_flg @first_flg end |
#last_flg ⇒ Object
Returns the value of attribute last_flg.
2 3 4 |
# File 'lib/gcalgen/every.rb', line 2 def last_flg @last_flg end |
#method ⇒ Object
Returns the value of attribute method.
2 3 4 |
# File 'lib/gcalgen/every.rb', line 2 def method @method end |
#mmdd ⇒ Object
Returns the value of attribute mmdd.
2 3 4 |
# File 'lib/gcalgen/every.rb', line 2 def mmdd @mmdd end |
#shift ⇒ Object
Returns the value of attribute shift.
2 3 4 |
# File 'lib/gcalgen/every.rb', line 2 def shift @shift end |
#weekday ⇒ Object
Returns the value of attribute weekday.
2 3 4 |
# File 'lib/gcalgen/every.rb', line 2 def weekday @weekday end |
Instance Method Details
#business_day ⇒ Object
23 24 25 |
# File 'lib/gcalgen/every.rb', line 23 def business_day @business = true end |
#first ⇒ Object
11 12 13 |
# File 'lib/gcalgen/every.rb', line 11 def first @first_flg = true end |
#last ⇒ Object
15 16 17 |
# File 'lib/gcalgen/every.rb', line 15 def last @last_flg = true end |
#shift_enable ⇒ Object
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 |