Class: PostForMe::Models::FacebookActivityByActionType

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/post_for_me/models/facebook_activity_by_action_type.rb,
sig/post_for_me/models/facebook_activity_by_action_type.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(action_type:, value:) ⇒ FacebookActivityByActionType

Returns a new instance of FacebookActivityByActionType.

Parameters:

  • action_type (String)

    Action type (e.g., like, comment, share)

  • value (Float)

    Number of actions

  • action_type: (String)
  • value: (Float)


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

Instance Attribute Details

#action_typeString

Action type (e.g., like, comment, share)

Parameters:

  • value (String)

Returns:

  • (String)


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

required :action_type, String

#valueFloat

Number of actions

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :value, Float

Instance Method Details

#to_hash{ action_type: String, value: Float }

Returns:

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


13
# File 'sig/post_for_me/models/facebook_activity_by_action_type.rbs', line 13

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