Sha256: c17724887c7415cad8e613a5c63b01c9eb2c725b6d7632a33499df07690702a4
Contents?: true
Size: 718 Bytes
Versions: 3
Compression:
Stored size: 718 Bytes
Contents
require 'twitter/base' module Twitter class Configuration < Twitter::Base # @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, []).inject({}) do |object, (key, value)| object[key] = Size.new(value) object end end memoize :photo_sizes end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.14.0 | lib/twitter/configuration.rb |
twitter-5.13.0 | lib/twitter/configuration.rb |
twitter-5.12.0 | lib/twitter/configuration.rb |