lib/npr/entity/name.rb in npr-1.1.0 vs lib/npr/entity/name.rb in npr-1.2.0
- old
+ new
@@ -5,19 +5,19 @@
#
module NPR
module Entity
class Name < Base
attr_accessor :personId, :content
-
+
#-------------------
-
+
def initialize(json)
@personId = json["personId"].to_i
@content = json["$text"]
end
-
+
#-------------------
-
+
def to_s
@content.to_s
end
end # Name
end # Entity