Sha256: 3634d26360409aaf62fda1c3c60bd470d1ab718a9205b8d77219bc9f061c2ca1

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 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
      end
    end # MP3
  end # Entity
end # NPR

Version data entries

3 entries across 3 versions & 1 rubygems

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