Class: RRule::Weekday
- Inherits:
-
Object
- Object
- RRule::Weekday
- Defined in:
- lib/rrule/weekday.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#ordinal ⇒ Object
readonly
Returns the value of attribute ordinal.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(index, ordinal = nil) ⇒ Weekday
constructor
A new instance of Weekday.
Constructor Details
#initialize(index, ordinal = nil) ⇒ Weekday
Returns a new instance of Weekday.
7 8 9 10 |
# File 'lib/rrule/weekday.rb', line 7 def initialize(index, ordinal = nil) @index = index @ordinal = ordinal end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
5 6 7 |
# File 'lib/rrule/weekday.rb', line 5 def index @index end |
#ordinal ⇒ Object (readonly)
Returns the value of attribute ordinal.
5 6 7 |
# File 'lib/rrule/weekday.rb', line 5 def ordinal @ordinal end |