Class: Mailfloss::Resources::Integrations
- Defined in:
- lib/mailfloss/resources.rb,
sig/resources.rbs
Overview
GET /integrations and nested connections/keywords.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #connections ⇒ Connections
-
#get(type) ⇒ Hash
GET /integrations/type — detail for a single ESP.
- #keywords ⇒ Keywords
-
#list(per_page: nil, cursor: nil) ⇒ Hash
GET /integrations — all supported ESPs with connection state.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Mailfloss::Resources::Base
Instance Method Details
#connections ⇒ Connections
170 171 172 |
# File 'lib/mailfloss/resources.rb', line 170 def connections @connections ||= Connections.new(client) end |
#get(type) ⇒ Hash
GET /integrations/type — detail for a single ESP.
166 167 168 |
# File 'lib/mailfloss/resources.rb', line 166 def get(type) client.request(:get, "/integrations/#{encode(type)}") end |
#keywords ⇒ Keywords
174 175 176 |
# File 'lib/mailfloss/resources.rb', line 174 def keywords @keywords ||= Keywords.new(client) end |
#list(per_page: nil, cursor: nil) ⇒ Hash
GET /integrations — all supported ESPs with connection state.
158 159 160 |
# File 'lib/mailfloss/resources.rb', line 158 def list(per_page: nil, cursor: nil) client.request(:get, "/integrations", query: { per_page: per_page, cursor: cursor }) end |