Class: HubSpotSDK::Models::Marketing::EmailStatisticsData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/marketing/email_statistics_data.rb

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(counters:, device_breakdown:, qualifier_stats:, ratios:) ⇒ Object

Parameters:

  • counters (Hash{Symbol=>Integer})

    Counters like number of ‘sent`, `open` or `delivered`.

  • device_breakdown (Hash{Symbol=>Hash{Symbol=>Integer}})

    Statistics by device.

  • qualifier_stats (Hash{Symbol=>Hash{Symbol=>Integer}})

    Number of emails that were dropped and bounced.

  • ratios (Hash{Symbol=>Float})

    Ratios like ‘openratio` or `clickratio`



# File 'lib/hubspot_sdk/models/marketing/email_statistics_data.rb', line 35

Instance Attribute Details

#countersHash{Symbol=>Integer}

Counters like number of ‘sent`, `open` or `delivered`.

Returns:

  • (Hash{Symbol=>Integer})


11
# File 'lib/hubspot_sdk/models/marketing/email_statistics_data.rb', line 11

required :counters, HubSpotSDK::Internal::Type::HashOf[Integer]

#device_breakdownHash{Symbol=>Hash{Symbol=>Integer}}

Statistics by device.

Returns:

  • (Hash{Symbol=>Hash{Symbol=>Integer}})


17
18
19
# File 'lib/hubspot_sdk/models/marketing/email_statistics_data.rb', line 17

required :device_breakdown,
HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Internal::Type::HashOf[Integer]],
api_name: :deviceBreakdown

#qualifier_statsHash{Symbol=>Hash{Symbol=>Integer}}

Number of emails that were dropped and bounced.

Returns:

  • (Hash{Symbol=>Hash{Symbol=>Integer}})


25
26
27
# File 'lib/hubspot_sdk/models/marketing/email_statistics_data.rb', line 25

required :qualifier_stats,
HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Internal::Type::HashOf[Integer]],
api_name: :qualifierStats

#ratiosHash{Symbol=>Float}

Ratios like ‘openratio` or `clickratio`

Returns:

  • (Hash{Symbol=>Float})


33
# File 'lib/hubspot_sdk/models/marketing/email_statistics_data.rb', line 33

required :ratios, HubSpotSDK::Internal::Type::HashOf[Float]