Class: GpxDoctor::Models::Email

Inherits:
Struct
  • Object
show all
Defined in:
lib/gpx_doctor/models/email.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#domainObject

Returns the value of attribute domain

Returns:

  • (Object)

    the current value of domain



5
6
7
# File 'lib/gpx_doctor/models/email.rb', line 5

def domain
  @domain
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/gpx_doctor/models/email.rb', line 5

def id
  @id
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/gpx_doctor/models/email.rb', line 6

def to_s
  "#{id}@#{domain}"
end