lib/waylon/slack/user.rb
# Provides lazy, cached access to the User's internal details
# @return [Hash]
Provides lazy, cached access to the User's internal details
Provides lazy cached access to the User ' s internal details
def data
        if !@data || @data.empty?
          sense.cache("users.#{id}") do
            raw_data = sense.client.users_info(user: id)
            @data = raw_data["user"]
          end
        else
          @data
        end
      end
def data if ! @data || @data . empty? sense . cache ( "users.#{id}" ) do raw_data = sense . client . users_info ( user : id ) @data = raw_data [ "user" ] end else @data end end
Provides lazy, cached access to the User's internal details
Provides lazy cached access to the User ' s internal details
None
Hash