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 included from ObjectX

#action_to_object, #object_create, #varify

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ AddCalendarEntryAction

Returns a new instance of AddCalendarEntryAction.



1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
# File 'lib/ruby-macrodroid/actions.rb', line 1533

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, indent: 0) ⇒ Object Also known as: to_summary



1556
1557
1558
# File 'lib/ruby-macrodroid/actions.rb', line 1556

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