Sha256: c4b5cd98c55678553dfc01c3a447dbe95e159ef3ba3846bfc084b6138133df56
Contents?: true
Size: 441 Bytes
Versions: 7
Compression:
Stored size: 441 Bytes
Contents
require 'equalizer' require 'memoizable' require 'twitter/base' module Twitter class Suggestion < Twitter::Base include Equalizer.new(:slug) include Memoizable # @return [Integer] attr_reader :size # @return [String] attr_reader :name, :slug # @return [Array<Twitter::User>] def users @attrs.fetch(:users, []).collect do |user| User.new(user) end end memoize :users end end
Version data entries
7 entries across 7 versions & 1 rubygems