Sha256: 41b8c6ba0bc8352f6b90416741efb2b392f1da682e6e043f5c5d53fe92d91045

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

require 'zobbix/core_ext/hash'

class Zobbix
  class Credentials
    def initialize(hash)
      @hash = hash.symbolize_keys
    end

    def uri
      @hash.fetch(:uri)
    end

    def user
      @hash.fetch(:user)
    end

    def password
      @hash.fetch(:password)
    end

    def to_hash
      @hash.dup
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zobbix-0.1.0 lib/zobbix/credentials.rb
zobbix-0.0.4 lib/zobbix/credentials.rb
zobbix-0.0.3 lib/zobbix/credentials.rb
zobbix-0.0.2 lib/zobbix/credentials.rb
zobbix-0.0.1 lib/zobbix/credentials.rb