Class: Mailtrap::SendingStatGroup

Inherits:
Struct
  • Object
show all
Defined in:
lib/mailtrap/sending_stat_group.rb

Overview

Data Transfer Object for grouped Sending Stats data

Instance Attribute Summary collapse

Instance Attribute Details

#nameSymbol (readonly)

Group type (:category, :date, :sending_domain_id, :email_service_provider)

Returns:

  • the current value of name



9
10
11
# File 'lib/mailtrap/sending_stat_group.rb', line 9

def name
  @name
end

#statsSendingStats (readonly)

Sending stats for this group

Returns:

  • the current value of stats



9
10
11
# File 'lib/mailtrap/sending_stat_group.rb', line 9

def stats
  @stats
end

#valueString, Integer (readonly)

Group value (e.g., “Transactional”, “2026-01-01”, 1, “Gmail”)

Returns:

  • the current value of value



9
10
11
# File 'lib/mailtrap/sending_stat_group.rb', line 9

def value
  @value
end