Sha256: eb81635fcd83cab8d255cc6b92c8817f04854d2a3e9752da99f019ca68e11f58
Contents?: true
Size: 634 Bytes
Versions: 4
Compression:
Stored size: 634 Bytes
Contents
class AllowedDependency attr_accessor :name attr_accessor :version attr_accessor :expire attr_accessor :source attr_accessor :target attr_accessor :allows_granular_projects def initialize(name, version, expire, source, target, allows_granular_projects) @name = name @version = version @expire = expire @source = source @target = target @allows_granular_projects = allows_granular_projects end def expire? if @expire != nil expire = DateTime.parse(@expire,"%Y-%m-%d") return expire < DateTime.now end return false end end
Version data entries
4 entries across 4 versions & 1 rubygems