Class: Komonjo::Gateway::UsersGateway
- Inherits:
-
Object
- Object
- Komonjo::Gateway::UsersGateway
- Defined in:
- lib/komonjo/gateways/users_gateway.rb
Overview
A gateway for slack response to Komonjo::Model::User
Instance Method Summary collapse
-
#initialize(users) ⇒ UsersGateway
constructor
A new instance of UsersGateway.
- #users ⇒ Object
Constructor Details
#initialize(users) ⇒ UsersGateway
Returns a new instance of UsersGateway.
6 7 8 9 10 11 12 |
# File 'lib/komonjo/gateways/users_gateway.rb', line 6 def initialize(users) @users = users.map do |e| tmp = Hash[e.symbolize_keys] tmp[:profile] = Hash[tmp[:profile].symbolize_keys] tmp end end |