Sha256: 81007233d3f63f3d0d5a8a2c61463a9578ffe9943da3836314081b509358ea91
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 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.to_s end end # Paragraph end # Entity end # NPR
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
npr-1.1.0 | lib/npr/entity/paragraph.rb |