Sha256: ac235bd63e5ed61a4bddd2d0a70479477c7a14e1f32e6e89487c9cabe0c804d4
Contents?: true
Size: 500 Bytes
Versions: 4
Compression:
Stored size: 500 Bytes
Contents
## # NPR::Entity::Formats # # Audio Formats module NPR module Entity class Formats < Base has_many "mp3s", :key => "mp3", :class_name => NPR::Entity::MP3 shallow_attribute "wm", "rm", "mediastream" #-------------------- def initialize(json) extract_shallow_attributes(json) create_relations(json) end def empty? mp3s.empty? && !wm && !rm && !mediastream end end # Formats end # Entity end # NPR
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
npr-3.0.0 | lib/npr/entity/formats.rb |
npr-2.0.2 | lib/npr/entity/formats.rb |
npr-2.0.1 | lib/npr/entity/formats.rb |
npr-2.0.0 | lib/npr/entity/formats.rb |