Module: BrighterPlanet::Lodging::Data

Defined in:
lib/lodging/data.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/lodging/data.rb', line 4

def self.included(base)
  base.data_miner do
    schema do
      string  'lodging_class_name'
      string  'zip_code_name'
      string  'state_postal_abbreviation'
      integer 'rooms'
      integer 'duration'
    end

    process :run_data_miner_on_belongs_to_associations
  end
end