Sha256: aacbf2f50233c2266f435be0ed6b39fc8513af703fd12e3016bb4ecf092e1dd8
Contents?: true
Size: 513 Bytes
Versions: 4
Compression:
Stored size: 513 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.1.1 | lib/twitter/media/photo.rb |
twitter-5.1.0 | lib/twitter/media/photo.rb |
twitter-5.0.1 | lib/twitter/media/photo.rb |
twitter-5.0.0 | lib/twitter/media/photo.rb |