class Twitter::Media::Photo
Attributes
indices[R]
@return [Array<Integer>]
type[R]
@return [String]
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 21 def sizes @attrs.fetch(:sizes, []).each_with_object({}) do |(key, value), object| object[key] = Size.new(value) end end