Class: CalendarTrigger

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

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ CalendarTrigger

Returns a new instance of CalendarTrigger.



1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
# File 'lib/ruby-macrodroid.rb', line 1018

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