class ESP::User
Public Instance Methods
sub_organizations()
click to toggle source
The collection of sub organizations that belong to the user.
@return [ActiveResource::PaginatedCollection<ESP::SubOrganization>]
# File lib/esp/resources/user.rb, line 16 def sub_organizations return attributes['sub_organizations'] if attributes['sub_organizations'].present? SubOrganization.where(id_in: sub_organization_ids) end
teams()
click to toggle source
The collection of teams that belong to the user.
@return [ActiveResource::PaginatedCollection<ESP::Team>]
# File lib/esp/resources/user.rb, line 24 def teams return attributes['teams'] if attributes['teams'].present? Team.where(id_in: team_ids) end