Class: Watchtower::Address

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/watchtower/address.rb

Instance Method Summary collapse

Instance Method Details

#full_addressObject



9
10
11
# File 'app/models/watchtower/address.rb', line 9

def full_address
  [:address_1, :address_2, :address_3, :city, :state, :country].compact.join("\n")
end

#kindObject



5
6
7
# File 'app/models/watchtower/address.rb', line 5

def kind
  self[:kind] || "primary"
end

#to_sObject



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

def to_s
  name
end