Sha256: 7af5b81c5e0f21e3824574985de5d51ba1080fe64d98d9253f7df7afba659a1c
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
## # NPR::Entity::Text # module NPR module Entity class Text < Base has_many "paragraphs", :key => "paragraph", :class_name => NPR::Entity::Paragraph #----------------- def initialize(json) create_relations(json) end #----------------- def to_s @paragraphs.map(&:to_s).join("\n") end end # Text end # Entity end # NPR
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
npr-0.1.2 | lib/npr/entity/text.rb |
npr-0.1.1 | lib/npr/entity/text.rb |
npr-0.1.0 | lib/npr/entity/text.rb |