Class: NPR::Entity::Formats

Inherits:
Base
  • Object
show all
Defined in:
lib/npr/entity/formats.rb

Instance Method Summary collapse

Methods included from Concern::ShallowAttributes

included

Methods included from Concern::Relation

included

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

Returns:

  • (Boolean)


18
19
20
21
22
23
# File 'lib/npr/entity/formats.rb', line 18

def empty?
  mp3s.empty? &&
  !wm &&
  !rm &&
  !mediastream
end