Class: Ppl::Entity::EmailAddress
- Inherits:
-
Object
- Object
- Ppl::Entity::EmailAddress
- Defined in:
- lib/ppl/entity/email_address.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#preferred ⇒ Object
Returns the value of attribute preferred.
Instance Method Summary collapse
-
#initialize(address = nil) ⇒ EmailAddress
constructor
A new instance of EmailAddress.
- #to_s ⇒ Object
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
#address ⇒ Object
Returns the value of attribute address.
3 4 5 |
# File 'lib/ppl/entity/email_address.rb', line 3 def address @address end |
#preferred ⇒ Object
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_s ⇒ Object
11 12 13 |
# File 'lib/ppl/entity/email_address.rb', line 11 def to_s() return @address end |