Class: Quickbooks::Model::EmailAddress
- Defined in:
- lib/quickbooks/model/email_address.rb
Instance Method Summary collapse
-
#initialize(email_address = nil) ⇒ EmailAddress
constructor
A new instance of EmailAddress.
- #to_xml(options = {}) ⇒ Object
Methods inherited from BaseModel
attribute_names, #attributes, attrs_with_types, #inspect, inspect, reference_attrs, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns
Methods included from Validator
Methods included from Definition
included, #is_name_list_entity?, #is_transaction_entity?
Constructor Details
#initialize(email_address = nil) ⇒ EmailAddress
Returns a new instance of EmailAddress.
11 12 13 14 15 |
# File 'lib/quickbooks/model/email_address.rb', line 11 def initialize(email_address = nil) unless email_address.nil? self.address = email_address end end |
Instance Method Details
#to_xml(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/quickbooks/model/email_address.rb', line 6 def to_xml( = {}) return "" if address.to_s.empty? super end |