Class: PostForMe::Models::FacebookVideoViewTimeByDemographic

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

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(key:, value:) ⇒ FacebookVideoViewTimeByDemographic

Returns a new instance of FacebookVideoViewTimeByDemographic.

Parameters:

  • key (String)

    Demographic key (e.g., age_gender, region, country)

  • value (Float)

    Total view time in milliseconds

  • key: (String)
  • value: (Float)


# File 'lib/post_for_me/models/facebook_video_view_time_by_demographic.rb', line 18

Instance Attribute Details

#keyString

Demographic key (e.g., age_gender, region, country)

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/post_for_me/models/facebook_video_view_time_by_demographic.rb', line 10

required :key, String

#valueFloat

Total view time in milliseconds

Parameters:

  • value (Float)

Returns:

  • (Float)


16
# File 'lib/post_for_me/models/facebook_video_view_time_by_demographic.rb', line 16

required :value, Float

Instance Method Details

#to_hash{ key: String, value: Float }

Returns:

  • ({ key: String, value: Float })


12
# File 'sig/post_for_me/models/facebook_video_view_time_by_demographic.rbs', line 12

def to_hash: -> { key: String, value: Float }