app/models/property_traffic_estimate.rb
# == Schema Information
#
# Table name: property_traffic_estimates
#
# id :bigint not null, primary key
# alexa_pageviews_1_day :float
# alexa_pageviews_1_month :float
# alexa_pageviews_3_months :float
# alexa_pageviews_7_days :float
# alexa_pageviews_delta_1_day :float
# alexa_pageviews_delta_1_month :float
# alexa_pageviews_delta_3_months :float
# alexa_pageviews_delta_7_days :float
# alexa_rank_1_day :bigint default(0)
# alexa_rank_1_month :bigint default(0)
# alexa_rank_3_months :bigint default(0)
# alexa_rank_7_days :bigint default(0)
# alexa_rank_delta_1_day :bigint default(0)
# alexa_rank_delta_1_month :bigint default(0)
# alexa_rank_delta_3_months :bigint default(0)
# alexa_rank_delta_7_days :bigint default(0)
# alexa_reach_1_day :bigint default(0)
# alexa_reach_1_month :bigint default(0)
# alexa_reach_3_months :bigint default(0)
# alexa_reach_7_days :bigint default(0)
# alexa_reach_delta_1_day :bigint default(0)
# alexa_reach_delta_1_month :bigint default(0)
# alexa_reach_delta_3_months :bigint default(0)
# alexa_reach_delta_7_days :bigint default(0)
# pageviews_daily :bigint default(0)
# pageviews_monthly :bigint default(0)
# pageviews_yearly :bigint default(0)
# revenue_daily_cents :bigint default(0), not null
# revenue_daily_currency :string default("USD"), not null
# revenue_monthly_cents :bigint default(0), not null
# revenue_monthly_currency :string default("USD"), not null
# revenue_yearly_cents :bigint default(0), not null
# revenue_yearly_currency :string default("USD"), not null
# site_worth_cents :bigint default(0), not null
# site_worth_currency :string default("USD"), not null
# visitors_daily :bigint default(0)
# visitors_monthly :bigint default(0)
# visitors_yearly :bigint default(0)
# created_at :datetime not null
# updated_at :datetime not null
# property_id :bigint not null
#
# Indexes
#
# index_property_traffic_estimates_on_property_id (property_id)
#
class PropertyTrafficEstimate < ApplicationRecord
# extends ...................................................................
# includes ..................................................................
# relationships .............................................................
belongs_to :property
# validations ...............................................................
validates :property_id, presence: true
# callbacks .................................................................
# scopes ....................................................................
# additional config (i.e. accepts_nested_attribute_for etc...) ..............
monetize :site_worth_cents
monetize :revenue_daily_cents
monetize :revenue_monthly_cents
monetize :revenue_yearly_cents
# class methods .............................................................
class << self
end
# public instance methods ...................................................
# protected instance methods ................................................
# private instance methods ..................................................
end