lib/waylon/slack/channel.rb
# Provides lazy, cached access to the Channel's internal details
# @return [Hash]
Provides lazy, cached access to the Channel's internal details
Provides lazy cached access to the Channel ' s internal details
def data
        if !@data || @data.empty?
          sense.cache("channels.#{id}", expires: 300) do
            raw_data = sense.client.conversations_info(channel: id)
            @data = raw_data["channel"]
          end
        else
          @data
        end
      end
def data if ! @data || @data . empty? sense . cache ( "channels.#{id}" , expires : 300 ) do raw_data = sense . client . conversations_info ( channel : id ) @data = raw_data [ "channel" ] end else @data end end
Provides lazy, cached access to the Channel's internal details
Provides lazy cached access to the Channel ' s internal details
# Only cache channel info for 5 min
None
Hash