Class: NPR::Entity::Formats
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(json) ⇒ Formats
constructor
——————–.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ Formats
13 14 15 16 |
# File 'lib/npr/entity/formats.rb', line 13 def initialize(json) extract_shallow_attributes(json) create_relations(json) end |
Instance Method Details
#empty? ⇒ Boolean
18 19 20 21 22 23 |
# File 'lib/npr/entity/formats.rb', line 18 def empty? mp3s.empty? && !wm && !rm && !mediastream end |