Class: StackOne::Models::Shared::MessagingUserResultData

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/messaginguserresult_data.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(active: nil, bot: nil, email: nil, first_name: nil, id: nil, last_name: nil, name: nil, remote_id: nil, username: nil) ⇒ MessagingUserResultData

Returns a new instance of MessagingUserResultData.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/stack_one/models/shared/messaginguserresult_data.rb', line 35

def initialize(active: nil, bot: nil, email: nil, first_name: nil, id: nil, last_name: nil, name: nil, remote_id: nil, username: nil)
  @active = active
  @bot = bot
  @email = email
  @first_name = first_name
  @id = id
  @last_name = last_name
  @name = name
  @remote_id = remote_id
  @username = username
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/stack_one/models/shared/messaginguserresult_data.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @active == other.active
  return false unless @bot == other.bot
  return false unless @email == other.email
  return false unless @first_name == other.first_name
  return false unless @id == other.id
  return false unless @last_name == other.last_name
  return false unless @name == other.name
  return false unless @remote_id == other.remote_id
  return false unless @username == other.username
  true
end