class AWS::SimpleEmailService::Quotas

Returns information about your SimpleEmailService quotas.

def inspect

Other tags:
    Private: -
def inspect
  "<#{self.class} #{to_h.inspect}>"
end

def max_24_hour_send

Returns:
  • (Integer) - The maximum number of emails the user is allowed
def max_24_hour_send
  to_h[:max_24_hour_send]
end

def max_send_rate

Returns:
  • (Float) - The maximum number of emails the user is allowed
def max_send_rate
  to_h[:max_send_rate]
end

def sent_last_24_hours

Returns:
  • (Integer) - Returns the number of emails sent during the
def sent_last_24_hours
  to_h[:sent_last_24_hours]
end

def to_h

Returns:
  • (Hash) - Returns a hash of the SES quotas.
def to_h
  response = client.get_send_quota({})
  {
    :max_24_hour_send => response.max_24_hour_send.to_i,
    :max_send_rate => response.max_send_rate.to_f,
    :sent_last_24_hours => response.sent_last_24_hours.to_i,  
  }
end