Class: TimeSinceBootConstraint

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 = {}) ⇒ TimeSinceBootConstraint

Returns a new instance of TimeSinceBootConstraint.



4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
# File 'lib/ruby-macrodroid.rb', line 4468

def initialize(h={})

  options = {
    less_than: true,
    time_period_seconds: 10921
  }

  super(options.merge h)

end