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