Class: AddCalendarEntryAction

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

Overview

Category: Logging

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ AddCalendarEntryAction

Returns a new instance of AddCalendarEntryAction.



3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
# File 'lib/ruby-macrodroid.rb', line 3342

def initialize(h={})

  options = {
    title: '',
    duration_value: '0',
    calendar_id: '3',
    detail: '',
    availability: 0,
    fixed_days: 16,
    fixed_hour: 0,
    fixed_minute: 0,
    fixed_months: 8,
    fixed_time: true,
    relative_days: 0,
    relative_hours: 0,
    relative_minutes: 0,
    all_day_event: true
  }

  super(options.merge h)

end