Class: TowerdataEmail::Email

Inherits:
Object
  • Object
show all
Includes:
ConnectionData
Defined in:
lib/towerdata_email.rb

Constant Summary

Constants included from ConnectionData

ConnectionData::UNSUPPORTED_ATTR

Instance Attribute Summary collapse

Attributes included from ConnectionData

#ok, #status_code, #status_desc

Instance Method Summary collapse

Methods included from ConnectionData

#incorrect?, #time_out?

Constructor Details

#initialize(email_data) ⇒ Email

Create a new TowerData::Email

Arguments:

fields: (HTTParty::Response)


142
143
144
# File 'lib/towerdata_email.rb', line 142

def initialize(email_data)
  set_attributes email_data
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



136
137
138
# File 'lib/towerdata_email.rb', line 136

def address
  @address
end

#correctionsObject

Returns the value of attribute corrections.



136
137
138
# File 'lib/towerdata_email.rb', line 136

def corrections
  @corrections
end

#domainObject

Returns the value of attribute domain.



136
137
138
# File 'lib/towerdata_email.rb', line 136

def domain
  @domain
end

#usernameObject

Returns the value of attribute username.



136
137
138
# File 'lib/towerdata_email.rb', line 136

def username
  @username
end

#validation_levelObject

Returns the value of attribute validation_level.



136
137
138
# File 'lib/towerdata_email.rb', line 136

def validation_level
  @validation_level
end