Class: TimeSinceBootConstraint

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

Overview

Category: Device State

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ TimeSinceBootConstraint

Returns a new instance of TimeSinceBootConstraint.



4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
# File 'lib/ruby-macrodroid.rb', line 4608

def initialize(h={})

  options = {
    less_than: true,
    time_period_seconds: 10921
  }

  super(options.merge h)

end