Class: SendGrid4r::REST::Mail::Attachment
- Inherits:
-
Struct
- Object
- Struct
- SendGrid4r::REST::Mail::Attachment
- Defined in:
- lib/sendgrid4r/rest/mail/attachment.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#content_id ⇒ Object
Returns the value of attribute content_id.
-
#disposition ⇒ Object
Returns the value of attribute disposition.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
10 11 12 |
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10 def content @content end |
#content_id ⇒ Object
Returns the value of attribute content_id
10 11 12 |
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10 def content_id @content_id end |
#disposition ⇒ Object
Returns the value of attribute disposition
10 11 12 |
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10 def disposition @disposition end |
#filename ⇒ Object
Returns the value of attribute filename
10 11 12 |
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10 def filename @filename end |
#type ⇒ Object
Returns the value of attribute type
10 11 12 |
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10 def type @type end |
Instance Method Details
#to_h ⇒ Object
17 18 19 |
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 17 def to_h super.reject { |_key, value| value.nil? } end |