Class: CalendarConstraint

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

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ CalendarConstraint

Returns a new instance of CalendarConstraint.



4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
# File 'lib/ruby-macrodroid.rb', line 4398

def initialize(h={})

  options = {
    enable_regex: false,
    availability: 0,
    calendar_id: '1',
    calendar_name: 'PC Sync',
    detail_text: '',
    entry_set: true,
    ignore_all_day: false,
    title_text: ''
  }

  super(options.merge h)

end