lib/npr/entity/paragraph.rb in npr-1.1.0 vs lib/npr/entity/paragraph.rb in npr-1.2.0
- old
+ new
@@ -9,17 +9,17 @@
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