aaronrenner/full_circle

View on GitHub
lib/full_circle/ad.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'virtus'

module FullCircle
  class Ad
    include Virtus.value_object

    values do
      attribute :id, Integer
      attribute :name, String
      attribute :description, String
      attribute :url, String
      attribute :logo, FullCircle::Image
      attribute :logo2, FullCircle::Image
      attribute :tile, FullCircle::Image
      attribute :event_count, Integer
      attribute :coupon_count, Integer
      attribute :job_count, Integer
      attribute :location_count, Integer
      attribute :popup_count, Integer
      attribute :slideshow_count, Integer
      attribute :link_count, Integer
      attribute :address, FullCircle::Address
    end
  end
end