Class: Ppl::Entity::EmailAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/ppl/entity/email_address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address = nil) ⇒ EmailAddress

Returns a new instance of EmailAddress.



6
7
8
9
# File 'lib/ppl/entity/email_address.rb', line 6

def initialize(address = nil)
  @address = address
  @preferred = false
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



3
4
5
# File 'lib/ppl/entity/email_address.rb', line 3

def address
  @address
end

#preferredObject

Returns the value of attribute preferred.



4
5
6
# File 'lib/ppl/entity/email_address.rb', line 4

def preferred
  @preferred
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/ppl/entity/email_address.rb', line 11

def to_s()
  return @address
end