Class: Mailtrap::CompanyInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/mailtrap/company_info.rb

Overview

Data Transfer Object for Sending Domain Company Info

Instance Attribute Summary collapse

Instance Attribute Details

#address ⇒ String? (readonly)

Street address

Returns:

  • (String, nil) —

    the current value of address



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def address
  @address
end

#city ⇒ String? (readonly)

City

Returns:

  • (String, nil) —

    the current value of city



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def city
  @city
end

#country ⇒ String? (readonly)

Country

Returns:

  • (String, nil) —

    the current value of country



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def country
  @country
end

#info_level ⇒ String? (readonly)

Whether the sender is a "business" or "individual"

Returns:

  • (String, nil) —

    the current value of info_level



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def info_level
  @info_level
end

#name ⇒ String? (readonly)

Company or individual name

Returns:

  • (String, nil) —

    the current value of name



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def name
  @name
end

#phone ⇒ String? (readonly)

Phone number

Returns:

  • (String, nil) —

    the current value of phone



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def phone
  @phone
end

#privacy_policy_url ⇒ String? (readonly)

URL to the privacy policy page

Returns:

  • (String, nil) —

    the current value of privacy_policy_url



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def privacy_policy_url
  @privacy_policy_url
end

#terms_of_service_url ⇒ String? (readonly)

URL to the terms of service page

Returns:

  • (String, nil) —

    the current value of terms_of_service_url



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def terms_of_service_url
  @terms_of_service_url
end

#website_url ⇒ String? (readonly)

Company website URL or LinkedIn / personal website

Returns:

  • (String, nil) —

    the current value of website_url



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def website_url
  @website_url
end

#zip_code ⇒ String? (readonly)

ZIP or postal code

Returns:

  • (String, nil) —

    the current value of zip_code



16
17
18
# File 'lib/mailtrap/company_info.rb', line 16

def zip_code
  @zip_code
end