Sha256: 9c82560735db4671d82ed3c928c67e7ea5d56397b87780575f3a0d2ad44c8ff6

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 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
    end # Formats
  end # Entity
end # NPR

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
npr-1.2.0 lib/npr/entity/formats.rb