class UncleKryon::AumData
Attributes
filename[RW]
filesize[RW]
languages[RW]
mirrors[RW]
subtitle[RW]
timespan[RW]
title[RW]
url[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/unclekryon/data/aum_data.rb, line 26 def initialize super() @title = '' @subtitle = '' @languages = [] @timespan = '' @filesize = '' @filename = '' @url = '' @mirrors = {} end
Public Instance Methods
==(other)
click to toggle source
Excludes @updated_on
# File lib/unclekryon/data/aum_data.rb, line 41 def ==(other) return @title == other.title && @subtitle == other.subtitle && @languages == other.languages && @timespan == other.timespan && @filesize == other.filesize && @filename == other.filename && @url == other.url && @mirrors == other.mirrors end
to_s()
click to toggle source
# File lib/unclekryon/data/aum_data.rb, line 52 def to_s s = '' s << ('%-40s' % [@title]) s << (' | %30s' % [@subtitle]) s << (' | %10s' % [@languages.join(';')]) s << (' | %10s' % [@timespan]) s << (' | %10s' % [@filesize]) s << (' | %30s' % [@filename]) return s end