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.



4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
# File 'lib/ruby-macrodroid.rb', line 4167

def initialize(h={})

  options = {
    less_than: true,
    time_period_seconds: 10921
  }

  super(options.merge h)

end