class PhoneRingingConstraint

Category: Phone

Public Class Methods

new(h={}) click to toggle source
Calls superclass method Constraint::new
# File lib/ruby-macrodroid/constraints.rb, line 1126
def initialize(h={})

  options = {
    ringing: true
  }

  super(options.merge h)

end

Public Instance Methods

to_s(colour: false, indent: 0) click to toggle source
Calls superclass method MacroObject#to_s
# File lib/ruby-macrodroid/constraints.rb, line 1136
def to_s(colour: false, indent: 0)
  @s = @h[:ringing] ? 'Phone Ringing' : 'Not Ringing'
  super(colour: colour)
end