Class: XapiScraper::Models::Components::TwitterUserAboutResponse

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(user_id:, avatar:, name:, screen_name:, created_at:, profile_image_shape:, verification:, user_label_display_type:, user_label_type:, is_blue_verified:, privacy_policy_url:, account_based_in:, location_accurate:, affiliate_username:, source:, username_changes_count:, override_verified_year:, verified_since_msec:) ⇒ TwitterUserAboutResponse

Returns a new instance of TwitterUserAboutResponse.



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/xapi_scraper/models/components/twitteruseraboutresponse.rb', line 142

def initialize(
  user_id:,
  avatar:,
  name:,
  screen_name:,
  created_at:,
  profile_image_shape:,
  verification:,
  user_label_display_type:,
  user_label_type:,
  is_blue_verified:,
  privacy_policy_url:,
  account_based_in:,
  location_accurate:,
  affiliate_username:,
  source:,
  username_changes_count:,
  override_verified_year:,
  verified_since_msec:
)
  @user_id = user_id
  @avatar = avatar
  @name = name
  @screen_name = screen_name
  @created_at = created_at
  @profile_image_shape = profile_image_shape
  @verification = verification
  @user_label_display_type = user_label_display_type
  @user_label_type = user_label_type
  @is_blue_verified = is_blue_verified
  @privacy_policy_url = privacy_policy_url
  @account_based_in = 
  @location_accurate = location_accurate
  @affiliate_username = affiliate_username
  @source = source
  @username_changes_count = username_changes_count
  @override_verified_year = override_verified_year
  @verified_since_msec = verified_since_msec
end

Instance Method Details

#==(other) ⇒ Object



183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# File 'lib/xapi_scraper/models/components/twitteruseraboutresponse.rb', line 183

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @user_id == other.user_id
  return false unless @avatar == other.avatar
  return false unless @name == other.name
  return false unless @screen_name == other.screen_name
  return false unless @created_at == other.created_at
  return false unless @profile_image_shape == other.profile_image_shape
  return false unless @verification == other.verification
  return false unless @user_label_display_type == other.user_label_display_type
  return false unless @user_label_type == other.user_label_type
  return false unless @is_blue_verified == other.is_blue_verified
  return false unless @privacy_policy_url == other.privacy_policy_url
  return false unless @account_based_in == other.
  return false unless @location_accurate == other.location_accurate
  return false unless @affiliate_username == other.affiliate_username
  return false unless @source == other.source
  return false unless @username_changes_count == other.username_changes_count
  return false unless @override_verified_year == other.override_verified_year
  return false unless @verified_since_msec == other.verified_since_msec
  true
end