Class: SendGrid4r::REST::Mail::Attachment

Inherits:
Struct
  • Object
show all
Defined in:
lib/sendgrid4r/rest/mail/attachment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



10
11
12
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10

def content
  @content
end

#content_idObject

Returns the value of attribute content_id

Returns:

  • (Object)

    the current value of content_id



10
11
12
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10

def content_id
  @content_id
end

#dispositionObject

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



10
11
12
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10

def disposition
  @disposition
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



10
11
12
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10

def filename
  @filename
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



10
11
12
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 10

def type
  @type
end

Instance Method Details

#to_hObject



17
18
19
# File 'lib/sendgrid4r/rest/mail/attachment.rb', line 17

def to_h
  super.reject { |_key, value| value.nil? }
end