Sha256: e3923e178700156cdb744100fbe3cc3390a4fbdfb978de47a8801cb20d1bedfc
Contents?: true
Size: 372 Bytes
Versions: 2
Compression:
Stored size: 372 Bytes
Contents
require 'twitter/base' require 'twitter/size' module Twitter class ProfileBanner < Twitter::Base # Returns an array of photo sizes # # @return [Array<Twitter::Size>] def sizes @sizes ||= Array(@attrs[:sizes]).inject({}) do |object, (key, value)| object[key] = Twitter::Size.fetch_or_new(value) object end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter-4.4.0 | lib/twitter/profile_banner.rb |
twitter-4.3.0 | lib/twitter/profile_banner.rb |