class Twitter::Media::Photo
Attributes
indices[R]
@return [Array<Integer>]
Public Instance Methods
sizes()
click to toggle source
Returns an array of photo sizes
@return [Array<Twitter::Size>]
# File lib/twitter/media/photo.rb, line 17 def sizes @attrs.fetch(:sizes, []).inject({}) do |object, (key, value)| object[key] = Size.new(value) object end end