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, #siguid, #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.



1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
# File 'lib/ruby-macrodroid.rb', line 1649

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