Sha256: 06de88f3f65edae866b2ec7ce607fdad2c9db4d8353e6ab5ad3bfbcd7f924ebc

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

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

    validates :uid, :urn, :client_uid, presence: true

    def client
      @client ||= G5Updatable::Client.find_by_uid(client_uid)
    end

    def integration_settings
      G5Updatable::IntegrationSetting.where(location_uid: self.uid)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
g5_updatable-0.3.1 app/models/g5_updatable/location.rb