Class: Bosh::Director::Models::Stemcell

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/models/stemcell.rb

Instance Method Summary collapse

Instance Method Details

#descObject



12
13
14
# File 'lib/bosh/director/models/stemcell.rb', line 12

def desc
  "#{name}/#{version}"
end

#validateObject



6
7
8
9
10
# File 'lib/bosh/director/models/stemcell.rb', line 6

def validate
  validates_presence [:name, :version, :cid]
  validates_unique [:name, :version]
  validates_format VALID_ID, [:name, :version]
end