Sha256: d77591c8c71fc7961a3d7c21194a42373365ad6d1d9f03c8f2ccbb8c0555506a
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
module VersionCake class VersionedResource attr_reader :uri, :supported_versions, :deprecated_versions, :obsolete_versions def initialize(uri, obsolete_versions, deprecated_versions, supported_versions) @uri, @supported_versions, @deprecated_versions, @obsolete_versions = uri, supported_versions, deprecated_versions, obsolete_versions end def latest_version @supported_versions.last end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
versioncake-3.1.0 | lib/versioncake/versioned_resource.rb |
versioncake-3.0.0 | lib/versioncake/versioned_resource.rb |