Sha256: acf4761e9ffeec2f73e35f5a5a53de0aa06f9437c9a0459c9a3b2f617a6c15d2
Contents?: true
Size: 633 Bytes
Versions: 9
Compression:
Stored size: 633 Bytes
Contents
module AssetCloud class Metadata attr_accessor :exist, :size, :created_at, :updated_at def new? !self.exist end def exist? self.exist end def initialize(exist, size = nil, created_at = nil, updated_at = nil) self.exist, self.size, self.created_at, self.updated_at = exist, size, created_at, updated_at end def self.existing self.new(true) end def self.non_existing self.new false end def inspect "#<#{self.class.name}: exist:#{exist} size:#{size.inspect} bytes>" end end end
Version data entries
9 entries across 9 versions & 2 rubygems