Sha256: 65713ccd419a9713d2d0162e1309efd0ae68c1d2a3d49158481cbfdee2dafc97
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
## # NPR::Entity::Paragraph # # NPR splits every paragraph into separate # database entries. This object will represent # a single paragraph for a story. # module NPR module Entity class Paragraph < Base attr_accessor :num, :content #--------------------- def initialize(json) @content = json["$text"] @num = json["num"].to_i end #--------------------- def to_s @content end end # Paragraph end # Entity end # NPR
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
npr-0.1.2 | lib/npr/entity/paragraph.rb |
npr-0.1.1 | lib/npr/entity/paragraph.rb |
npr-0.1.0 | lib/npr/entity/paragraph.rb |