Sha256: 6489e151baa88f7933a8d15a8a64c2cab57995368e16f147d40b611c6edc469f

Contents?: true

Size: 590 Bytes

Versions: 11

Compression:

Stored size: 590 Bytes

Contents

module Le
  module Host

    def self.new(token, local, debug, ssl)
      Le::Host::HTTP.new(token, local, debug, ssl)
    end

    module InstanceMethods
      def formatter
        proc do |severity, datetime, _, msg|
          message = "#{datetime} "
          message << format_message(msg, severity)
        end
      end

      def format_message(message_in, severity)
        message_in = message_in.inspect unless message_in.is_a?(String)

        "severity=#{severity}, #{message_in.lstrip}"
      end
    end

  end
end

require File.join(File.dirname(__FILE__), 'host', 'http')

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
le-2.4.0 lib/le/host.rb
le-2.3.9 lib/le/host.rb
le-2.2.9 ./lib/le/host.rb
le-2.2.8 ./lib/le/host.rb
le-2.2.6 ./lib/le/host.rb
le-2.2.5 ./lib/le/host.rb
le-2.2.4 ./lib/le/host.rb
le-2.2.3 ./lib/le/host.rb
le-2.2.2 ./lib/le/host.rb
le-2.2.1 ./lib/le/host.rb
le-2.2 ./lib/le/host.rb