Sha256: 2b2a9e541bb81153195414431587df112290bf878ad7de7b01199445b01eec4f
Contents?: true
Size: 646 Bytes
Versions: 22
Compression:
Stored size: 646 Bytes
Contents
module CFoundry::V1 class Service attr_accessor :label, :version, :description, :type, :provider, :state def initialize(label, version = nil, description = nil, type = nil, provider = "core", state = nil) @label = label @description = description @version = version @type = type @provider = provider @state = state end def eql?(other) other.is_a?(self.class) && other.label == @label end alias :== :eql? def active true end def deprecated? @state == :deprecated end def current? @state == :current end end end
Version data entries
22 entries across 22 versions & 1 rubygems