Sha256: 5510ee0361b6f8b51df84a23e38934e33159c3232a39a8fbd52013bc1fa08f38
Contents?: true
Size: 389 Bytes
Versions: 5
Compression:
Stored size: 389 Bytes
Contents
## # NPR::Entity::Namew # # Byline name # 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 end # NPR
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
npr-3.0.0 | lib/npr/entity/name.rb |
npr-2.0.2 | lib/npr/entity/name.rb |
npr-2.0.1 | lib/npr/entity/name.rb |
npr-2.0.0 | lib/npr/entity/name.rb |
npr-1.2.0 | lib/npr/entity/name.rb |