Sha256: c59d5d90dd9d6583997d41a1d77478e0019e19820c3725cf0452db95e9d5bfe9

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 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

3 entries across 3 versions & 1 rubygems

Version Path
npr-0.1.2 lib/npr/entity/formats.rb
npr-0.1.1 lib/npr/entity/formats.rb
npr-0.1.0 lib/npr/entity/formats.rb