Sha256: 3705bf2415fbb1f75d17d3e9ea52dbe17238d394c4cdceaa82968e25ca79cb47
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
## # NPR::Entity::Audio # module NPR module Entity class Audio < Base attr_accessor :id, :type shallow_attribute "title", "duration", "description", "rightsHolder" has_one "permissions", :class_name => NPR::Entity::Permissions has_one "formats", :key => "format", :class_name => NPR::Entity::Formats has_one "stream", :class_name => NPR::Entity::Stream #------------------- def initialize(json) @id = json["id"].to_i @type = json["type"] create_relations(json) extract_shallow_attributes(json) end end # Audio end # Entity end # NPR
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
npr-3.0.0 | lib/npr/entity/audio.rb |
npr-2.0.2 | lib/npr/entity/audio.rb |
npr-2.0.1 | lib/npr/entity/audio.rb |
npr-2.0.0 | lib/npr/entity/audio.rb |