Sha256: 75ff8f2b60f72f03b711981271900d2d38435eff4c2701fcc05d627285588880

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

module G5Updatable
  class Client < ActiveRecord::Base
    include G5Updatable::FirstClassProperties
    include G5Updatable::UrnAsParameter

    validates :uid, :urn, presence: true

    def locations
      G5Updatable::Location.where(client_uid: self.uid)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
g5_updatable-0.3.5 app/models/g5_updatable/client.rb
g5_updatable-0.3.4 app/models/g5_updatable/client.rb
g5_updatable-0.3.3 app/models/g5_updatable/client.rb
g5_updatable-0.3.2 app/models/g5_updatable/client.rb
g5_updatable-0.3.1 app/models/g5_updatable/client.rb