Sha256: 6af503dbdd8cc3d53c3d04c779e01b09fb36cb49ddfe4c58726db7c077200aaf

Contents?: true

Size: 473 Bytes

Versions: 2

Compression:

Stored size: 473 Bytes

Contents

# -*- coding: utf-8 -*-

module Dcmgr::Models
  class InstanceSpec < AccountResource
    taggable 'is'

    inheritable_schema do
      String :hypervisor, :null=>false
      String :arch, :null=>false
      
      Fixnum :cpu_cores, :null=>false, :unsigned=>true
      Fixnum :memory_size, :null=>false, :unsigned=>true
      Text :config, :null=>false, :default=>''
    end
    with_timestamps

    def to_hash
      super.merge({:config=>config.to_s})
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
wakame-vdc-dcmgr-10.11.0 lib/dcmgr/models/instance_spec.rb
wakame-vdc-agents-10.11.0 lib/dcmgr/models/instance_spec.rb