Sha256: 33f05374dede2281fc428549a79ede76fd1a1542edf88e8ea010c20ffd807d6a
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
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, :dm_text_character_limit, :max_media_per_upload, :photo_size_limit, :short_url_length, :short_url_length_https alias short_uri_length short_url_length alias 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter-7.0.0 | lib/twitter/configuration.rb |
twitter-6.2.0 | lib/twitter/configuration.rb |