Sha256: 8845c455ee1ebb59c6ae5edff533cfb2a3106866612c981868ff63c7b96da32e

Contents?: true

Size: 527 Bytes

Versions: 11

Compression:

Stored size: 527 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

    # Returns an array of photo sizes
    #
    # @return [Array<Twitter::Size>]
    def photo_sizes
      @photo_sizes ||= Array(@attrs[:photo_sizes]).inject({}) do |object, (key, value)|
        object[key] = Twitter::Size.fetch_or_new(value)
        object
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
twitter-4.8.1 lib/twitter/configuration.rb
twitter-4.8.0 lib/twitter/configuration.rb
twitter-4.7.0 lib/twitter/configuration.rb
twitter-4.6.2 lib/twitter/configuration.rb
twitter-4.6.1 lib/twitter/configuration.rb
twitter-4.6.0 lib/twitter/configuration.rb
twitter-4.5.0 lib/twitter/configuration.rb
twitter-4.4.4 lib/twitter/configuration.rb
twitter-4.4.3 lib/twitter/configuration.rb
twitter-4.4.2 lib/twitter/configuration.rb
twitter-4.4.1 lib/twitter/configuration.rb