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

#addressString? (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

#cityString? (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

#countryString? (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_levelString? (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

#nameString? (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

#phoneString? (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_urlString? (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_urlString? (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_urlString? (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_codeString? (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