Class: Hackle::HackleUser

Inherits:
Object
  • Object
show all
Defined in:
lib/hackle/internal/user/hackle_user.rb

Defined Under Namespace

Classes: Builder

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifiers:, properties:) ⇒ HackleUser

Returns a new instance of HackleUser.

Parameters:

  • identifiers (Hash{String => String})
  • properties (Hash{String => Object})


17
18
19
20
# File 'lib/hackle/internal/user/hackle_user.rb', line 17

def initialize(identifiers:, properties:)
  @identifiers = identifiers
  @properties = properties
end

Instance Attribute Details

#identifiersHash{String => String} (readonly)

Returns:

  • (Hash{String => String})


10
11
12
# File 'lib/hackle/internal/user/hackle_user.rb', line 10

def identifiers
  @identifiers
end

#propertiesHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


13
14
15
# File 'lib/hackle/internal/user/hackle_user.rb', line 13

def properties
  @properties
end

Class Method Details

.builderObject



26
27
28
# File 'lib/hackle/internal/user/hackle_user.rb', line 26

def self.builder
  Builder.new
end

Instance Method Details

#==(other) ⇒ Object



22
23
24
# File 'lib/hackle/internal/user/hackle_user.rb', line 22

def ==(other)
  other.is_a?(Hackle::HackleUser) && identifiers == other.identifiers && properties == other.properties
end