Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.475 kb
class Brewery < Couchbase::Model
attribute :name, :description
attribute :country, :state, :city, :address
attribute :phone
attribute :geo
attribute :updated
view :all, :limit => 31
view :all_with_beers
view :by_country, :include_docs => false, :group => true
view :points, :spatial => true
def full_address
[country, state, city, address].reject(&:blank?).join(', ')
end
def location
[country, state].reject(&:blank?).join(', ')
end
end
Jump to Line
Something went wrong with that request. Please try again.