Sha256: 0e47e647005fbf5de51fb2fde66e9ab84a249ef1f995b9962299dacc8121d76a
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 Bytes
Contents
require 'memoizable' require 'twitter/base' module Twitter class ProfileBanner < Twitter::Base include Memoizable # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.17.0 | lib/twitter/profile_banner.rb |
twitter-5.16.0 | lib/twitter/profile_banner.rb |
twitter-5.15.0 | lib/twitter/profile_banner.rb |