Sha256: 9dbb697dc7cdda9b0f5b87ed37d8cec1b5a4c68dee68e3ed8b934986a5977114

Contents?: true

Size: 221 Bytes

Versions: 5

Compression:

Stored size: 221 Bytes

Contents

class User

  attr_reader :name

  def initialize(name)
    @name = name
  end

  def login(password)
    return LoginService.new.login(@name, password)
  end

  def logout
    return LoginService.new.logout
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-hackernews-1.1.2 lib/ruby-hackernews/domain/user.rb
ruby-hackernews-1.1.1 lib/ruby-hackernews/domain/user.rb
ruby-hackernews-1.1.0 lib/ruby-hackernews/domain/user.rb
ruby-hackernews-1.0.1 lib/ruby-hackernews/domain/user.rb
ruby-hackernews-1.0.0 lib/HNAPI/domain/user.rb