Class: Quickbooks::Model::PhysicalAddress

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/quickbooks/model/physical_address.rb

Instance Method Summary collapse

Methods inherited from BaseModel

#as_json, attribute_names, #attributes, attrs_with_types, #initialize, 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

#line_item_size

Methods included from Definition

included, #is_name_list_entity?, #is_transaction_entity?

Constructor Details

This class inherits a constructor from Quickbooks::Model::BaseModel

Instance Method Details

#have_lat?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/quickbooks/model/physical_address.rb', line 30

def have_lat?
  lat.to_s != "INVALID"
end

#have_lon?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/quickbooks/model/physical_address.rb', line 34

def have_lon?
  lon.to_s != "INVALID"
end

#lat_to_fObject



22
23
24
# File 'lib/quickbooks/model/physical_address.rb', line 22

def lat_to_f
  BigDecimal(lat)
end

#lon_to_fObject



26
27
28
# File 'lib/quickbooks/model/physical_address.rb', line 26

def lon_to_f
  BigDecimal(lon)
end

#zipObject



18
19
20
# File 'lib/quickbooks/model/physical_address.rb', line 18

def zip
  postal_code
end