Methods

Class/Module Index [+]

Quicksearch

Twitter::Media::Photo

Attributes

indices[R]

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 13
def sizes
  @attrs.fetch(:sizes, []).inject({}) do |object, (key, value)|
    object[key] = Size.new(value)
    object
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.