Class: AddCalendarEntryAction

Inherits:
LoggingAction show all
Defined in:
lib/ruby-macrodroid/actions.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

Constructor Details

#initialize(h = {}) ⇒ AddCalendarEntryAction

Returns a new instance of AddCalendarEntryAction.



1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
# File 'lib/ruby-macrodroid/actions.rb', line 1275

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

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



1298
1299
1300
# File 'lib/ruby-macrodroid/actions.rb', line 1298

def to_s(colour: false)
  'AddCalendarEntryAction ' + @h.inspect
end