Sha256: e28657300e806c4604997f916e55a3da6728a9d88e89a69266a147d2909ab925

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
npr-1.1.0 lib/npr/entity/mp3.rb