Class: Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember2::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:



775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
# File 'lib/onlyfans/models/statistics/reach_get_profile_visitors_response.rb', line 775

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::UnionMember2::Data::TopCountries::Row::ViewsCount, nil]
  optional :views_count,
           -> { Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember2::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::UnionMember2::Data::TopCountries::Row::ViewsCount]

  # @see Onlyfans::Models::Statistics::ReachGetProfileVisitorsResponse::UnionMember2::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)


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

optional :country_code, String, api_name: :countryCode

#country_nameString?

Returns:

  • (String, nil)


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

optional :country_name, String, api_name: :countryName

#rankInteger?

Returns:

  • (Integer, nil)


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

optional :rank, Integer