Sha256: 4714930b4a1386d0b15702f69911528b68871e7617c237795edfcb75c71e4b6e
Contents?: true
Size: 617 Bytes
Versions: 4
Compression:
Stored size: 617 Bytes
Contents
require 'twitter/base' module Twitter class Configuration < Twitter::Base attr_reader :characters_reserved_per_media, :max_media_per_upload, :non_username_paths, :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 Array(@attrs[:photo_sizes]).inject({}) do |object, (key, value)| object[key] = Size.new(value) object end end memoize :photo_sizes end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.1.1 | lib/twitter/configuration.rb |
twitter-5.1.0 | lib/twitter/configuration.rb |
twitter-5.0.1 | lib/twitter/configuration.rb |
twitter-5.0.0 | lib/twitter/configuration.rb |