Class: XapiScraper::Models::Components::AccountVerifyModel

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/xapi_scraper/models/components/accountverifymodel.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(user_id: nil, screen_name: nil, is_blue_verified: nil, is_verified_organization_affiliate: nil, is_verified: nil) ⇒ AccountVerifyModel

Returns a new instance of AccountVerifyModel.



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/xapi_scraper/models/components/accountverifymodel.rb', line 55

def initialize(
  user_id: nil,
  screen_name: nil,
  is_blue_verified: nil,
  is_verified_organization_affiliate: nil,
  is_verified: nil
)
  @user_id = user_id
  @screen_name = screen_name
  @is_blue_verified = is_blue_verified
  @is_verified_organization_affiliate = is_verified_organization_affiliate
  @is_verified = is_verified
end

Instance Method Details

#==(other) ⇒ Object



70
71
72
73
74
75
76
77
78
# File 'lib/xapi_scraper/models/components/accountverifymodel.rb', line 70

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @user_id == other.user_id
  return false unless @screen_name == other.screen_name
  return false unless @is_blue_verified == other.is_blue_verified
  return false unless @is_verified_organization_affiliate == other.is_verified_organization_affiliate
  return false unless @is_verified == other.is_verified
  true
end