Class: ModeConstraint

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

Overview

Category: MacroDroid Specific

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ ModeConstraint



3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
# File 'lib/ruby-macrodroid.rb', line 3646

def initialize(h={})

  options = {
    mode: 'Away',
    mode_selected: true
  }

  super(options.merge h)

end