Class: Mailersend::APIQuota
- Inherits:
-
Object
- Object
- Mailersend::APIQuota
- Defined in:
- lib/mailersend/api_quota/api_quota.rb
Overview
API Quota endpoint from MailerSend API
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #get_api_quota ⇒ Object
-
#initialize(client = Mailersend::Client.new) ⇒ APIQuota
constructor
A new instance of APIQuota.
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
#client ⇒ Object
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_quota ⇒ Object
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 |