Class: Komonjo::Gateway::ChannelsGateway

Inherits:
Object
  • Object
show all
Defined in:
lib/komonjo/gateways/channels_gateway.rb

Overview

Merge history and users

Instance Method Summary collapse

Constructor Details

#initialize(channels) ⇒ ChannelsGateway

Returns a new instance of ChannelsGateway.



6
7
8
# File 'lib/komonjo/gateways/channels_gateway.rb', line 6

def initialize(channels)
  @channels = channels.map { |e| Hash[e.symbolize_keys] }
end

Instance Method Details

#channelsObject



10
11
12
# File 'lib/komonjo/gateways/channels_gateway.rb', line 10

def channels
  @channels.map { |e| Komonjo::Model::Channel.create(e) }
end