Class: Quickeebooks::Online::Model::Email

Inherits:
IntuitType
  • Object
show all
Defined in:
lib/quickeebooks/online/model/email.rb

Instance Method Summary collapse

Methods inherited from IntuitType

resource_for_collection, resource_for_singular

Methods included from Logging

#log

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(options = {})
  return "" if address.to_s.empty?
  super
end