Sha256: ea5368d7f8bec9abd193ea14a5a4e6ab9f1b787a6e99316275325d2f125a5c27
Contents?: true
Size: 725 Bytes
Versions: 51
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true module CMSScanner module Model # User class User include Finders::Finding attr_accessor :password attr_reader :id, :username # @param [ String ] username # @param [ Hash ] opts # @option opts [ Integer ] :id # @option opts [ String ] :password def initialize(username, opts = {}) @username = username @password = opts[:password] @id = opts[:id] parse_finding_options(opts) end def ==(other) return false unless self.class == other.class username == other.username && password == other.password end def to_s username end end end end
Version data entries
51 entries across 51 versions & 3 rubygems