class CalendarConstraint
Category: Date/Time
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Constraint::new
# File lib/ruby-macrodroid/constraints.rb, line 410 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
Public Instance Methods
to_s(colour: false, indent: 0)
click to toggle source
# File lib/ruby-macrodroid/constraints.rb, line 427 def to_s(colour: false, indent: 0) 'CalendarConstraint ' + @h.inspect end
Also aliased as: to_summary