Class: SendGrid4r::REST::Mail::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



8
9
10
# File 'lib/sendgrid4r/rest/mail/address.rb', line 8

def email
  @email
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



8
9
10
# File 'lib/sendgrid4r/rest/mail/address.rb', line 8

def name
  @name
end

Instance Method Details

#to_hObject



9
10
11
# File 'lib/sendgrid4r/rest/mail/address.rb', line 9

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