Sha256: b8a37be7072121ecda1e1b2348b3150c4aef7c7f897ffd84b441ce4fbfd313fa
Contents?: true
Size: 862 Bytes
Versions: 8
Compression:
Stored size: 862 Bytes
Contents
module CFoundry::V1 class Runtime attr_accessor :name, :description, :debug_modes, :version, :status, :series, :category def initialize(name, description = nil, debug_modes = nil, version = nil, status = nil, series = nil, category = nil) @name = name @description = description @debug_modes = debug_modes @version = version @status = status @series = series @category = category end def eql?(other) other.is_a?(self.class) && other.name == @name end alias :== :eql? def apps [] # not supported by v1 end def deprecated? status && status[:name] == "deprecated" end def next? status && status[:name] == "next" end def current? status.nil? || status[:name] == "current" end end end
Version data entries
8 entries across 8 versions & 1 rubygems