Class: Adtraction::Api::Models::Channel
- Inherits:
-
Object
- Object
- Adtraction::Api::Models::Channel
- Defined in:
- lib/adtraction/api/models/channel.rb
Class Method Summary collapse
Class Method Details
.parse(data) ⇒ Object
11 12 13 |
# File 'lib/adtraction/api/models/channel.rb', line 11 def self.parse(data) data&.collect { |item| self.new(id: item.fetch("channelId")&.to_i, name: item.fetch("channelName")) } end |