Class: Address

Inherits:
ContactAttribute show all
Defined in:
app/models/address.rb

Constant Summary

Constants inherited from ContactAttribute

ContactAttribute::AVAILABLE_TYPES

Instance Attribute Summary collapse

Attributes inherited from ContactAttribute

#primary, #public

Instance Method Summary collapse

Methods inherited from ContactAttribute

#_create, #always_public?, #id, #id=, #json_root, #new_record?, #to_key

Methods included from ContactAttribute::CustomKeys

#async_custom_keys, #custom_keys

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



2
3
4
# File 'app/models/address.rb', line 2

def category
  @category
end

#cityObject

Returns the value of attribute city.



2
3
4
# File 'app/models/address.rb', line 2

def city
  @city
end

#countryObject

Returns the value of attribute country.



2
3
4
# File 'app/models/address.rb', line 2

def country
  @country
end

#neighborhoodObject

Returns the value of attribute neighborhood.



2
3
4
# File 'app/models/address.rb', line 2

def neighborhood
  @neighborhood
end

#postal_codeObject

Returns the value of attribute postal_code.



2
3
4
# File 'app/models/address.rb', line 2

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state.



2
3
4
# File 'app/models/address.rb', line 2

def state
  @state
end

Instance Method Details

#_typeObject



12
13
14
# File 'app/models/address.rb', line 12

def _type
  self.class.name
end