Sha256: add2c27101f1e8da252cfc8c6c542d5519836265739992df42c6aae21d2dbedb
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
require 'twitter/identity' module Twitter module Media class Photo < Twitter::Identity # @return [Array<Integer>] 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 @attrs.fetch(:sizes, []).inject({}) do |object, (key, value)| object[key] = Size.new(value) object end end memoize :sizes end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.14.0 | lib/twitter/media/photo.rb |
twitter-5.13.0 | lib/twitter/media/photo.rb |
twitter-5.12.0 | lib/twitter/media/photo.rb |