Class: SendGrid::PartnerSettingsDto

Inherits:
Object
  • Object
show all
Defined in:
lib/sendgrid/helpers/settings/partner_settings_dto.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#new_relicObject (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