Class: Mailersend::APIQuota

Inherits:
Object
  • Object
show all
Defined in:
lib/mailersend/api_quota/api_quota.rb

Overview

API Quota endpoint from MailerSend API

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client = Mailersend::Client.new) ⇒ APIQuota

Returns a new instance of APIQuota.



8
9
10
# File 'lib/mailersend/api_quota/api_quota.rb', line 8

def initialize(client = Mailersend::Client.new)
  @client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/mailersend/api_quota/api_quota.rb', line 6

def client
  @client
end

Instance Method Details

#get_api_quotaObject



12
13
14
# File 'lib/mailersend/api_quota/api_quota.rb', line 12

def get_api_quota(*)
  client.http.get("#{MAILERSEND_API_URL}/api-quota")
end