Class: Mobiscroll::Connect::RecurrenceRule
- Inherits:
-
Struct
- Object
- Struct
- Mobiscroll::Connect::RecurrenceRule
- Defined in:
- lib/mobiscroll/connect/models.rb
Overview
iCal-style recurrence rule. ‘frequency` is one of “DAILY”, “WEEKLY”, “MONTHLY”, “YEARLY”.
Instance Attribute Summary collapse
-
#by_day ⇒ Object
Returns the value of attribute by_day.
-
#by_month ⇒ Object
Returns the value of attribute by_month.
-
#by_month_day ⇒ Object
Returns the value of attribute by_month_day.
-
#count ⇒ Object
Returns the value of attribute count.
-
#frequency ⇒ Object
Returns the value of attribute frequency.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#until ⇒ Object
Returns the value of attribute until.
Instance Method Summary collapse
Instance Attribute Details
#by_day ⇒ Object
Returns the value of attribute by_day
146 147 148 |
# File 'lib/mobiscroll/connect/models.rb', line 146 def by_day @by_day end |
#by_month ⇒ Object
Returns the value of attribute by_month
146 147 148 |
# File 'lib/mobiscroll/connect/models.rb', line 146 def by_month @by_month end |
#by_month_day ⇒ Object
Returns the value of attribute by_month_day
146 147 148 |
# File 'lib/mobiscroll/connect/models.rb', line 146 def by_month_day @by_month_day end |
#count ⇒ Object
Returns the value of attribute count
146 147 148 |
# File 'lib/mobiscroll/connect/models.rb', line 146 def count @count end |
#frequency ⇒ Object
Returns the value of attribute frequency
146 147 148 |
# File 'lib/mobiscroll/connect/models.rb', line 146 def frequency @frequency end |
#interval ⇒ Object
Returns the value of attribute interval
146 147 148 |
# File 'lib/mobiscroll/connect/models.rb', line 146 def interval @interval end |
#until ⇒ Object
Returns the value of attribute until
146 147 148 |
# File 'lib/mobiscroll/connect/models.rb', line 146 def until @until end |
Instance Method Details
#to_wire ⇒ Object
150 151 152 153 154 155 156 157 158 159 |
# File 'lib/mobiscroll/connect/models.rb', line 150 def to_wire wire = { 'frequency' => frequency } wire['interval'] = interval unless interval.nil? wire['count'] = count unless count.nil? wire['until'] = self[:until] unless self[:until].nil? wire['byDay'] = by_day unless by_day.nil? wire['byMonthDay'] = by_month_day unless by_month_day.nil? wire['byMonth'] = by_month unless by_month.nil? wire end |