Sha256: a524c81656196662f5d7540289b4278fc95745612351d422c02dd7e1b96e9241
Contents?: true
Size: 340 Bytes
Versions: 6
Compression:
Stored size: 340 Bytes
Contents
require 'twitter/base' module Twitter class ProfileBanner < Twitter::Base # Returns an array of photo sizes # # @return [Array<Twitter::Size>] def sizes @attrs.fetch(:sizes, []).inject({}) do |object, (key, value)| object[key] = Size.new(value) object end end memoize :sizes end end
Version data entries
6 entries across 6 versions & 1 rubygems