Sha256: d648664957958ae69761cf0064564680a9d8c62562f6137bab99c425dc70667f
Contents?: true
Size: 441 Bytes
Versions: 5
Compression:
Stored size: 441 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 title @content.to_s end alias_method :to_s, :title end # Program end # Entity end # NPR
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
npr-3.0.0 | lib/npr/entity/program.rb |
npr-2.0.2 | lib/npr/entity/program.rb |
npr-2.0.1 | lib/npr/entity/program.rb |
npr-2.0.0 | lib/npr/entity/program.rb |
npr-1.2.0 | lib/npr/entity/program.rb |