Sha256: 11c243afc68e4808ef51365802a91437e198656402ca07075145a8ed4b6ba28f

Contents?: true

Size: 711 Bytes

Versions: 27

Compression:

Stored size: 711 Bytes

Contents

module Spider; module Master
    
    class Installation < Spider::Model::Managed
        element :uuid, UUID
        element :name, String, :label => _('Name')
        choice :customer, Customer, :add_multiple_reverse => :installations
        element :apps, Text, :hidden => true
        element :ip_address, String
        element :hostname, String
        element :configuration, Text, :hidden => true
        element :last_check, DateTime, :hidden => true
        element :interval, Fixnum, :hidden => true
        
        def to_s
            str = self.name || self.uuid
            if self.customer
                str += " - #{self.customer}"
            end
        end
        
    end
    
end; end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/master/models/installation.rb
spiderfw-1.0.0 apps/master/models/installation.rb
spiderfw-0.6.39 apps/master/models/installation.rb
spiderfw-0.6.38 apps/master/models/installation.rb
spiderfw-0.6.37 apps/master/models/installation.rb
spiderfw-0.6.35 apps/master/models/installation.rb
spiderfw-0.6.34 apps/master/models/installation.rb
spiderfw-0.6.33 apps/master/models/installation.rb
spiderfw-0.6.32 apps/master/models/installation.rb
spiderfw-0.6.31 apps/master/models/installation.rb
spiderfw-0.6.30 apps/master/models/installation.rb
spiderfw-0.6.29 apps/master/models/installation.rb
spiderfw-0.6.28 apps/master/models/installation.rb
spiderfw-0.6.27 apps/master/models/installation.rb
spiderfw-0.6.26 apps/master/models/installation.rb
spiderfw-0.6.26.pre1 apps/master/models/installation.rb
spiderfw-0.6.25 apps/master/models/installation.rb
spiderfw-0.6.24 apps/master/models/installation.rb
spiderfw-0.6.23 apps/master/models/installation.rb
spiderfw-0.6.22 apps/master/models/installation.rb