Class: Quickeebooks::Online::Model::Email
- Inherits:
-
IntuitType
- Object
- IntuitType
- Quickeebooks::Online::Model::Email
- Defined in:
- lib/quickeebooks/online/model/email.rb
Instance Method Summary collapse
-
#initialize(email_address = nil) ⇒ Email
constructor
A new instance of Email.
- #to_xml(options = {}) ⇒ Object
Methods inherited from IntuitType
resource_for_collection, resource_for_singular
Constructor Details
#initialize(email_address = nil) ⇒ Email
Returns a new instance of Email.
15 16 17 18 19 |
# File 'lib/quickeebooks/online/model/email.rb', line 15 def initialize(email_address = nil) unless email_address.nil? self.address = email_address end end |
Instance Method Details
#to_xml(options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/quickeebooks/online/model/email.rb', line 10 def to_xml( = {}) return "" if address.to_s.empty? super end |