Class: Sendgrid::API::Web::Profile::Services
- Defined in:
- lib/sendgrid/api/web/profile.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
-
#get ⇒ Entities::Profile
View your SendGrid profile.
-
#set(profile) ⇒ Entities::Response
Update your SendGrid profile.
Methods inherited from Service
Constructor Details
This class inherits a constructor from Sendgrid::API::Service
Instance Method Details
#get ⇒ Entities::Profile
View your SendGrid profile
20 21 22 |
# File 'lib/sendgrid/api/web/profile.rb', line 20 def get perform_request(Entities::Profile, 'profile.get.json').first end |
#set(profile) ⇒ Entities::Response
Update your SendGrid profile
29 30 31 |
# File 'lib/sendgrid/api/web/profile.rb', line 29 def set(profile) perform_request(Entities::Response, 'profile.set.json', profile.as_json) end |