Sha256: 5ec77a52d43d8df363b94d1f95a0f022d2e8b45a79e23648cb52f46f411099e5
Contents?: true
Size: 361 Bytes
Versions: 5
Compression:
Stored size: 361 Bytes
Contents
## # NPR::Entity::Link # module NPR module Entity class Link < Base attr_accessor :type, :content #--------------------- def initialize(json) @content = json["$text"] @type = json["type"] end #--------------------- def to_s @content.to_s end end # Link end # Entity end # NPR
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
npr-3.0.0 | lib/npr/entity/link.rb |
npr-2.0.2 | lib/npr/entity/link.rb |
npr-2.0.1 | lib/npr/entity/link.rb |
npr-2.0.0 | lib/npr/entity/link.rb |
npr-1.2.0 | lib/npr/entity/link.rb |