Class: SendGrid::UserSettingsDto
- Inherits:
-
Object
- Object
- SendGrid::UserSettingsDto
- Defined in:
- lib/sendgrid/helpers/settings/user_settings_dto.rb
Instance Attribute Summary collapse
-
#enforced_tls ⇒ Object
readonly
Returns the value of attribute enforced_tls.
Class Method Summary collapse
- .fetch(sendgrid_client:, name:, query_params:) ⇒ Object
- .update(sendgrid_client:, name:, request_body:) ⇒ Object
Instance Attribute Details
#enforced_tls ⇒ Object (readonly)
Returns the value of attribute enforced_tls.
3 4 5 |
# File 'lib/sendgrid/helpers/settings/user_settings_dto.rb', line 3 def enforced_tls @enforced_tls end |
Class Method Details
.fetch(sendgrid_client:, name:, query_params:) ⇒ Object
5 6 7 |
# File 'lib/sendgrid/helpers/settings/user_settings_dto.rb', line 5 def self.fetch(sendgrid_client:, name:, query_params:) sendgrid_client.user.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/user_settings_dto.rb', line 9 def self.update(sendgrid_client:, name:, request_body:) sendgrid_client.user.settings.public_send(name).patch(request_body: request_body) end |