Class: SendGrid::PartnerSettingsDto
- Inherits:
-
Object
- Object
- SendGrid::PartnerSettingsDto
- Defined in:
- lib/sendgrid/helpers/settings/partner_settings_dto.rb
Instance Attribute Summary collapse
-
#new_relic ⇒ Object
readonly
Returns the value of attribute new_relic.
Class Method Summary collapse
- .fetch(sendgrid_client:, name:, query_params:) ⇒ Object
- .update(sendgrid_client:, name:, request_body:) ⇒ Object
Instance Attribute Details
#new_relic ⇒ Object (readonly)
Returns the value of attribute new_relic.
3 4 5 |
# File 'lib/sendgrid/helpers/settings/partner_settings_dto.rb', line 3 def new_relic @new_relic end |
Class Method Details
.fetch(sendgrid_client:, name:, query_params:) ⇒ Object
5 6 7 |
# File 'lib/sendgrid/helpers/settings/partner_settings_dto.rb', line 5 def self.fetch(sendgrid_client:, name:, query_params:) sendgrid_client.partner_settings.public_send(name).get(query_params: query_params) end |
.update(sendgrid_client:, name:, request_body:) ⇒ Object
9 10 11 |
# File 'lib/sendgrid/helpers/settings/partner_settings_dto.rb', line 9 def self.update(sendgrid_client:, name:, request_body:) sendgrid_client.partner_settings.public_send(name).patch(request_body: request_body) end |