Class: Bosh::Director::Models::Stemcell
- Defined in:
- lib/bosh/director/models/stemcell.rb
Instance Method Summary collapse
Instance Method Details
#desc ⇒ Object
12 13 14 |
# File 'lib/bosh/director/models/stemcell.rb', line 12 def desc "#{name}/#{version}" end |
#validate ⇒ Object
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 |