class Saklient::Cloud::Enums::EAvailability

リソースの有効性を表す列挙子.

Public Class Methods

available() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 47
def self.available
  'available'
end
charged() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 39
def self.charged
  'charged'
end
compare(lhs, rhs) click to toggle source

@private

# File lib/saklient/cloud/enums/eavailability.rb, line 52
def self.compare(lhs, rhs)
  return nil if lhs.nil? || rhs.nil?
  l = @@_map[lhs.to_sym]
  r = @@_map[rhs.to_sym]
  return nil if l.nil? || r.nil?
  ret = l - r
  0 < ret ? 1 : (ret < 0 ? -1 : 0)
end
failed() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 35
def self.failed
  'failed'
end
migrating() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 15
def self.migrating
  'migrating'
end
precreate() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 19
def self.precreate
  'precreate'
end
replicating() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 23
def self.replicating
  'replicating'
end
selectable() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 11
def self.selectable
  'selectable'
end
stopped() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 31
def self.stopped
  'stopped'
end
transfering() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 27
def self.transfering
  'transfering'
end
uploading() click to toggle source
# File lib/saklient/cloud/enums/eavailability.rb, line 43
def self.uploading
  'uploading'
end