Class: AddCalendarEntryAction
- Inherits:
-
LoggingAction
- Object
- MacroObject
- Action
- LoggingAction
- AddCalendarEntryAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Logging
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ AddCalendarEntryAction
constructor
A new instance of AddCalendarEntryAction.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ AddCalendarEntryAction
1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 |
# File 'lib/ruby-macrodroid/actions.rb', line 1620 def initialize(h={}) = { 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(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1643 1644 1645 |
# File 'lib/ruby-macrodroid/actions.rb', line 1643 def to_s(colour: false, indent: 0) 'AddCalendarEntryAction ' + @h.inspect end |