Class: XapiScraper::Models::Components::DMStatusModelV2
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::DMStatusModelV2
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/dmstatusmodelv2.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(user_id: nil, screen_name: nil, is_blue_verified: nil, is_verified_organization_affiliate: nil, verified: nil, can_dm: nil, can_dm_on_xchat: nil, dm_blocking: nil, passes_premium_check: nil) ⇒ DMStatusModelV2
constructor
A new instance of DMStatusModelV2.
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, verified: nil, can_dm: nil, can_dm_on_xchat: nil, dm_blocking: nil, passes_premium_check: nil) ⇒ DMStatusModelV2
Returns a new instance of DMStatusModelV2.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/xapi_scraper/models/components/dmstatusmodelv2.rb', line 83 def initialize( user_id: nil, screen_name: nil, is_blue_verified: nil, is_verified_organization_affiliate: nil, verified: nil, can_dm: nil, can_dm_on_xchat: nil, dm_blocking: nil, passes_premium_check: nil ) @user_id = user_id @screen_name = screen_name @is_blue_verified = is_blue_verified @is_verified_organization_affiliate = is_verified_organization_affiliate @verified = verified @can_dm = can_dm @can_dm_on_xchat = can_dm_on_xchat @dm_blocking = dm_blocking @passes_premium_check = passes_premium_check end |
Instance Method Details
#==(other) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/xapi_scraper/models/components/dmstatusmodelv2.rb', line 106 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 @verified == other.verified return false unless @can_dm == other.can_dm return false unless @can_dm_on_xchat == other.can_dm_on_xchat return false unless @dm_blocking == other.dm_blocking return false unless @passes_premium_check == other.passes_premium_check true end |