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

Constructor Details

#initialize(h = {}) ⇒ AddCalendarEntryAction

Returns a new instance of AddCalendarEntryAction.



3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
# File 'lib/ruby-macrodroid.rb', line 3837

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



3860
3861
3862
# File 'lib/ruby-macrodroid.rb', line 3860

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