Sha256: 74bda0639d5759ab8560b3f2202291c65a889a7c5e8b7f7bb4bcd117c19b378e

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

##
# NPR::Entity::IntroText
#
module NPR
  module Entity
    class IntroText < Base
      attr_accessor :num, :content
      
      def initialize(json)
        @num     = json["num"].to_i
        @content = json["$text"] 
      end
      
      #--------------------
      
      def to_s
        @content
      end
    end # IntroText
  end # Entity
end # NPR

Version data entries

3 entries across 3 versions & 1 rubygems

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