Sha256: a342e1edbec6bbabfbc94bb58d969b939b407087cd8ab01e51d1b33d6b9d4be5
Contents?: true
Size: 387 Bytes
Versions: 5
Compression:
Stored size: 387 Bytes
Contents
module TMDBParty class Category include Attributes attributes :name, :url def initialize(values) self.attributes = values end def self.parse(data) data = data["category"] if data.is_a?(Array) data.collect do |category| Category.new(category) end else Category.new(data) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems