Class: DeviceLockedConstraint

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

Overview

Category: Device State

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ DeviceLockedConstraint

Returns a new instance of DeviceLockedConstraint.



4135
4136
4137
4138
4139
4140
4141
4142
4143
# File 'lib/ruby-macrodroid.rb', line 4135

def initialize(h={})

  options = {
    locked: true
  }

  super(options.merge h)

end