Class: BatterySaverStateConstraint

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

Overview

Category: Battery/Power

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

Constructor Details

#initialize(h = {}) ⇒ BatterySaverStateConstraint

Returns a new instance of BatterySaverStateConstraint.



4827
4828
4829
4830
4831
4832
4833
4834
4835
# File 'lib/ruby-macrodroid.rb', line 4827

def initialize(h={})

  options = {
    option: 0
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



4837
4838
4839
# File 'lib/ruby-macrodroid.rb', line 4837

def to_s(colour: false)
  'BatterySaverStateConstraint ' + @h.inspect
end