Sha256: 592c69ad94278d63bb1b3e6e9ac9baf8ce4a3aa3daad79964d5f1231fb39a882

Contents?: true

Size: 641 Bytes

Versions: 9

Compression:

Stored size: 641 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 :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

9 entries across 9 versions & 1 rubygems

Version Path
spiderfw-0.6.14 apps/master/models/installation.rb
spiderfw-0.6.13 apps/master/models/installation.rb
spiderfw-0.6.12 apps/master/models/installation.rb
spiderfw-0.6.11 apps/master/models/installation.rb
spiderfw-0.6.10 apps/master/models/installation.rb
spiderfw-0.6.9 apps/master/models/installation.rb
spiderfw-0.6.8 apps/master/models/installation.rb
spiderfw-0.6.7 apps/master/models/installation.rb
spiderfw-0.6.6 apps/master/models/installation.rb