Class: SendGrid4r::REST::Mail::Address
- Inherits:
-
Struct
- Object
- Struct
- SendGrid4r::REST::Mail::Address
- Defined in:
- lib/sendgrid4r/rest/mail/address.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email
8 9 10 |
# File 'lib/sendgrid4r/rest/mail/address.rb', line 8 def email @email end |
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/sendgrid4r/rest/mail/address.rb', line 8 def name @name end |
Instance Method Details
#to_h ⇒ Object
9 10 11 |
# File 'lib/sendgrid4r/rest/mail/address.rb', line 9 def to_h super.reject { |_key, value| value.nil? } end |