Class: GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Ranks

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/growsurf_ruby/models/campaign/participant_analytics_response.rb,
sig/growsurf_ruby/models/campaign/participant_analytics_response.rbs

Overview

See Also:

  • GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse#ranks

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

#initializeObject



177
# File 'sig/growsurf_ruby/models/campaign/participant_analytics_response.rbs', line 177

def initialize: (

Instance Attribute Details

#monthly_rankInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


183
# File 'lib/growsurf_ruby/models/campaign/participant_analytics_response.rb', line 183

optional :monthly_rank, Integer, api_name: :monthlyRank, nil?: true

#prev_monthly_rankInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


188
# File 'lib/growsurf_ruby/models/campaign/participant_analytics_response.rb', line 188

optional :prev_monthly_rank, Integer, api_name: :prevMonthlyRank, nil?: true

#rankInteger?

All-time rank (1-indexed), or null when unranked.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


194
# File 'lib/growsurf_ruby/models/campaign/participant_analytics_response.rb', line 194

optional :rank, Integer, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


183
# File 'sig/growsurf_ruby/models/campaign/participant_analytics_response.rbs', line 183

def to_hash: -> {