Sha256: bbfaff90bbfde6e806a7b410f6b59fb201fcacca2acb2ab63bdeff8ea6767dc2
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
## # NPR::Entity::IntroText # module NPR module Entity class IntroText < Base attr_accessor :num, :content def initialize(json) @num = json["num"].to_i @content = json["$text"] end #-------------------- def to_s @content.to_s end end # IntroText end # Entity end # NPR
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
npr-1.1.0 | lib/npr/entity/intro_text.rb |