Sha256: 00fb95960eed79fdbc8ed2677d20eee0e93b2e37dc87560d61f9678f7d7391f3

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

class Rosemary::BasicAuthClient
  attr_reader :username, :password

  def initialize(username, password)
    @username = username
    @password = password
  end

  def credentials
    {:username => username, :password => password}
  end

  def inspect
    "#<#{self.class.name}:#{self.object_id} @username='#{username}'>"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rosemary-0.3.4 lib/rosemary/basic_auth_client.rb
rosemary-0.3.3 lib/rosemary/basic_auth_client.rb