Sha256: 627fce34901ca90bd7f5851e96568ff462307646b737dfc74f1ca522279010ec

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

require 'twitter/base'

module Twitter
  class ProfileBanner < Twitter::Base
    # Returns an array of photo sizes
    #
    # @return [Array<Twitter::Size>]
    def sizes
      Array(@attrs[:sizes]).inject({}) do |object, (key, value)|
        object[key] = Size.new(value)
        object
      end
    end
    memoize :sizes
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter-5.8.0 lib/twitter/profile_banner.rb
twitter-5.7.1 lib/twitter/profile_banner.rb
twitter-5.7.0 lib/twitter/profile_banner.rb
twitter-5.6.0 lib/twitter/profile_banner.rb