Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (23 sloc) 0.758 kB
require 'memoizable'
require 'twitter/base'
module Twitter
class Configuration < Twitter::Base
include Memoizable
# @return [Array<String>]
attr_reader :non_username_paths
# @return [Integer]
attr_reader :characters_reserved_per_media, :max_media_per_upload,
:photo_size_limit, :short_url_length, :short_url_length_https
alias_method :short_uri_length, :short_url_length
alias_method :short_uri_length_https, :short_url_length_https
# Returns an array of photo sizes
#
# @return [Array<Twitter::Size>]
def photo_sizes
@attrs.fetch(:photo_sizes, []).each_with_object({}) do |(key, value), object|
object[key] = Size.new(value)
end
end
memoize :photo_sizes
end
end
Jump to Line
Something went wrong with that request. Please try again.