Class: Sendgrid::API::Web::Profile::Services

Inherits:
Service
  • Object
show all
Defined in:
lib/sendgrid/api/web/profile.rb

Instance Attribute Summary

Attributes inherited from Service

#resource

Instance Method Summary collapse

Methods inherited from Service

#initialize, #perform_request

Constructor Details

This class inherits a constructor from Sendgrid::API::Service

Instance Method Details

#getEntities::Profile

View your SendGrid profile

Returns:

See Also:



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

Parameters:

Returns:

See Also:



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