Sha256: b72a14adbef560d881d5c62bbc7bcae6f21f7fc1851a29b54145444b55d9656a
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
module RetroCasts class Episode attr_accessor :title, :number, :date, :length, :link, :description def initialize(attributes = {}) @title = attributes[:title] @number = attributes[:number] @date = attributes[:date] @length = attributes[:length] @link = attributes[:link] @description = attributes[:description] end def date @date.strftime("%b %-d, %Y") end def length "#{@length} minutes" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
retro_casts-0.1.2 | lib/retro_casts/episode.rb |