Sha256: c4bf3970c27ef7cc33e4c82311fb2e20f43c26402c4b8870b6c5ae5e63240b22

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

##
# NPR::Entity::MP3
#
module NPR
  module Entity
    class MP3 < Base
      attr_accessor :type, :content

      #-----------------

      def initialize(json)
        @type    = json["type"]
        @content = json["$text"]
      end

      #-----------------

      def to_s
        @content.to_s
      end
    end # MP3
  end # Entity
end # NPR

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
npr-3.0.0 lib/npr/entity/mp3.rb
npr-2.0.2 lib/npr/entity/mp3.rb
npr-2.0.1 lib/npr/entity/mp3.rb
npr-2.0.0 lib/npr/entity/mp3.rb
npr-1.2.0 lib/npr/entity/mp3.rb