Class: Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember0::Data::TopCountries::Row

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/onlyfans/models/statistics/reach_get_profile_visitors_response.rb

Defined Under Namespace

Classes: ViewsCount

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(country_code: nil, country_name: nil, rank: nil, views_count: nil) ⇒ Object

Parameters:



254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/onlyfans/models/statistics/reach_get_profile_visitors_response.rb', line 254

class Row < Onlyfans::Internal::Type::BaseModel
  # @!attribute country_code
  #
  #   @return [String, nil]
  optional :country_code, String, api_name: :countryCode

  # @!attribute country_name
  #
  #   @return [String, nil]
  optional :country_name, String, api_name: :countryName

  # @!attribute rank
  #
  #   @return [Integer, nil]
  optional :rank, Integer

  # @!attribute views_count
  #
  #   @return [Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember0::Data::TopCountries::Row::ViewsCount, nil]
  optional :views_count,
           -> { Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember0::Data::TopCountries::Row::ViewsCount },
           api_name: :viewsCount

  # @!method initialize(country_code: nil, country_name: nil, rank: nil, views_count: nil)
  #   @param country_code [String]
  #   @param country_name [String]
  #   @param rank [Integer]
  #   @param views_count [Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember0::Data::TopCountries::Row::ViewsCount]

  # @see Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember0::Data::TopCountries::Row#views_count
  class ViewsCount < Onlyfans::Internal::Type::BaseModel
    # @!attribute guests
    #
    #   @return [Integer, nil]
    optional :guests, Integer

    # @!attribute subscribers
    #
    #   @return [Integer, nil]
    optional :subscribers, Integer

    # @!attribute total
    #
    #   @return [Integer, nil]
    optional :total, Integer

    # @!attribute users
    #
    #   @return [Integer, nil]
    optional :users, Integer

    # @!method initialize(guests: nil, subscribers: nil, total: nil, users: nil)
    #   @param guests [Integer]
    #   @param subscribers [Integer]
    #   @param total [Integer]
    #   @param users [Integer]
  end
end

Instance Attribute Details

#country_codeString?

Returns:

  • (String, nil)


258
# File 'lib/onlyfans/models/statistics/reach_get_profile_visitors_response.rb', line 258

optional :country_code, String, api_name: :countryCode

#country_nameString?

Returns:

  • (String, nil)


263
# File 'lib/onlyfans/models/statistics/reach_get_profile_visitors_response.rb', line 263

optional :country_name, String, api_name: :countryName

#rankInteger?

Returns:

  • (Integer, nil)


268
# File 'lib/onlyfans/models/statistics/reach_get_profile_visitors_response.rb', line 268

optional :rank, Integer