Sha256: 8205a9030b690d4f85690c4046cc7987fc1b691b01bd599177e990271a4214a8
Contents?: true
Size: 482 Bytes
Versions: 14
Compression:
Stored size: 482 Bytes
Contents
module ActionKitRest class User < Base def base_path 'user' end def get(id) user = super(id) # Perform a second request to retrieve user's phones data if any available # (user.phones attribute includes the path for associated phones, not the data itself) if user.id.present? && user.phones.any? phones_list = client.phone.list(user: user.id) user.obj.phones = phones_list.obj.to_a end user end end end
Version data entries
14 entries across 14 versions & 1 rubygems