class ActionKitRest::User
Public Instance Methods
base_path()
click to toggle source
# File lib/action_kit_rest/user.rb, line 5 def base_path 'user' end
get(id)
click to toggle source
Calls superclass method
ActionKitRest::Base#get
# File lib/action_kit_rest/user.rb, line 9 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