Class: CalendarTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ CalendarTrigger

Returns a new instance of CalendarTrigger.



1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
# File 'lib/ruby-macrodroid.rb', line 1583

def initialize(h={})

  options = {
    title_text: '',
    detail_text: '',
    calendar_name: 'Contacts',
    calendar_id: '3',
    availability: 0,
    check_in_advance: false,
    advance_time_seconds: 0,
    event_start: true,
    ignore_all_day: false,
    negative_advance_check: false,
    enable_regex: false
  }

  super(options.merge h)

end