Sha256: ddacd3e5718a73a9e9472973480dc3b1d19185c75922239052f14a28cf158670

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

module Doggy
  class CLI::Mute
    def initialize(options, ids)
      @options = options
      @ids     = ids
    end

    def run
      monitors = @ids.map { |id| Doggy::Models::Monitor.find(id) }
      monitors.each(&:mute)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doggy-2.0.1 lib/doggy/cli/mute.rb
doggy-2.0.0 lib/doggy/cli/mute.rb