Sha256: 5dba3b6ca3f301c1147654b4e7e3c0918b4b68cef7d5a0b120226768076e87de
Contents?: true
Size: 505 Bytes
Versions: 5
Compression:
Stored size: 505 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
5 entries across 5 versions & 1 rubygems