lib/npr/entity/intro_text.rb in npr-1.1.0 vs lib/npr/entity/intro_text.rb in npr-1.2.0

- old
+ new

@@ -3,17 +3,17 @@ # module NPR module Entity class IntroText < Base attr_accessor :num, :content - + def initialize(json) @num = json["num"].to_i - @content = json["$text"] + @content = json["$text"] end - + #-------------------- - + def to_s @content.to_s end end # IntroText end # Entity