Class: PostForMe::Models::PlatformPost::Metrics::PinterestPostMetricsDto

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/post_for_me/models/platform_post.rb,
sig/post_for_me/models/platform_post.rbs

Constant Summary collapse

PostForMe =

Returns:

  • (:PinterestMetricsWindow)

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(number_90d: nil, lifetime_metrics: nil) ⇒ Object

Parameters:



# File 'lib/post_for_me/models/platform_post.rb', line 1501

Instance Attribute Details

#lifetime_metricsPostForMe::Models::PinterestMetricsWindow?

Lifetime Pin metrics



1499
# File 'lib/post_for_me/models/platform_post.rb', line 1499

optional :lifetime_metrics, -> { PostForMe::PinterestMetricsWindow }

#number_90dPostForMe::Models::PinterestMetricsWindow?

Last 90 days of Pin metrics



1493
# File 'lib/post_for_me/models/platform_post.rb', line 1493

optional :number_90d, -> { PostForMe::PinterestMetricsWindow }, api_name: :"90d"

Instance Method Details

#to_hash{

Returns:

  • ({)


1269
# File 'sig/post_for_me/models/platform_post.rbs', line 1269

def to_hash: -> {