Sha256: a26fc46fac091a0177b21e094e5e131497bcc2da0ec5521f9dc538038c6d3b50
Contents?: true
Size: 512 Bytes
Versions: 7
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]).reduce({}) do |object, (key, value)| object[key] = Size.new(value) object end end memoize :sizes end end end
Version data entries
7 entries across 7 versions & 1 rubygems