Sha256: 3e49f3c8652c1655495d92769e530e86a711b4ac16b8f2aee64610a6453fef43

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

module StatusCat
  module Checkers
    class SendHub < Base

      cattr_accessor :api_key
      cattr_accessor :number

      def initialize
        return if gem_missing?('ruby-sendhub', defined?(::SendHub))

        @value = number
        @status = fail_on_exception do
          send_hub = ::SendHub.new(api_key, number)
          send_hub.get_contacts ? nil : 'fail'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
status_cat-5.2.1 lib/status_cat/checkers/send_hub.rb
status_cat-5.2.0 lib/status_cat/checkers/send_hub.rb
status_cat-5.0.2 lib/status_cat/checkers/send_hub.rb
status_cat-5.0.1 lib/status_cat/checkers/send_hub.rb
status_cat-5.0.0 lib/status_cat/checkers/send_hub.rb