Sha256: 80e27a84b52de2c6241c11e37ffa1f6d8b9c577b621892331c0185b987222a69

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

require 'twitter/base'

module Twitter
  class ProfileBanner < Twitter::Base

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter-5.0.0.rc.1 lib/twitter/profile_banner.rb