Sha256: 049f6d1c8aeca1f11b3ec80ecfcf7531739cc1f2e8a564d4a38e4921e0bb9638
Contents?: true
Size: 512 Bytes
Versions: 4
Compression:
Stored size: 512 Bytes
Contents
require 'twitter/identity' module Twitter module Media class Photo < Twitter::Identity attr_reader :indices display_uri_attr_reader uri_attr_reader :expanded_uri, :media_uri, :media_uri_https, :uri # 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 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.8.0 | lib/twitter/media/photo.rb |
twitter-5.7.1 | lib/twitter/media/photo.rb |
twitter-5.7.0 | lib/twitter/media/photo.rb |
twitter-5.6.0 | lib/twitter/media/photo.rb |