Sha256: 8ebdcf2818b5895169f69cb89f0aa7e9a32f81f986fd5bc8f19e65482903b3dd

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

module Stratify
  module Gowalla
    class Activity < Stratify::Activity
      field :checkin_id, :type => Integer
      field :spot_name
      field :spot_city_state
      field :spot_latitude, :type => BigDecimal
      field :spot_longitude, :type => BigDecimal

      natural_key :checkin_id

      validates_presence_of :checkin_id, :spot_name, :spot_latitude, :spot_longitude

      template "Checked in at <strong><%= spot_name %></strong> in <strong><%= spot_city_state %></strong>"

      def permalink
        "http://gowalla.com/checkins/#{checkin_id}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stratify-gowalla-0.1.0 lib/stratify-gowalla/activity.rb