Class: Twitter::Configuration
Instance Attribute Summary collapse
-
#characters_reserved_per_media ⇒ Object
readonly
Returns the value of attribute characters_reserved_per_media.
-
#max_media_per_upload ⇒ Object
readonly
Returns the value of attribute max_media_per_upload.
-
#non_username_paths ⇒ Object
readonly
Returns the value of attribute non_username_paths.
-
#photo_size_limit ⇒ Object
readonly
Returns the value of attribute photo_size_limit.
-
#short_url_length ⇒ Object
readonly
Returns the value of attribute short_url_length.
-
#short_url_length_https ⇒ Object
readonly
Returns the value of attribute short_url_length_https.
Attributes inherited from Base
Instance Method Summary collapse
-
#photo_sizes ⇒ Array<Twitter::Size>
Returns an array of photo sizes.
Methods inherited from Base
#[], attr_reader, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Attribute Details
#characters_reserved_per_media ⇒ Object (readonly)
Returns the value of attribute characters_reserved_per_media.
6 7 8 |
# File 'lib/twitter/configuration.rb', line 6 def characters_reserved_per_media @characters_reserved_per_media end |
#max_media_per_upload ⇒ Object (readonly)
Returns the value of attribute max_media_per_upload.
6 7 8 |
# File 'lib/twitter/configuration.rb', line 6 def max_media_per_upload @max_media_per_upload end |
#non_username_paths ⇒ Object (readonly)
Returns the value of attribute non_username_paths.
6 7 8 |
# File 'lib/twitter/configuration.rb', line 6 def non_username_paths @non_username_paths end |
#photo_size_limit ⇒ Object (readonly)
Returns the value of attribute photo_size_limit.
6 7 8 |
# File 'lib/twitter/configuration.rb', line 6 def photo_size_limit @photo_size_limit end |
#short_url_length ⇒ Object (readonly)
Returns the value of attribute short_url_length.
6 7 8 |
# File 'lib/twitter/configuration.rb', line 6 def short_url_length @short_url_length end |
#short_url_length_https ⇒ Object (readonly)
Returns the value of attribute short_url_length_https.
6 7 8 |
# File 'lib/twitter/configuration.rb', line 6 def short_url_length_https @short_url_length_https end |
Instance Method Details
#photo_sizes ⇒ Array<Twitter::Size>
Returns an array of photo sizes
12 13 14 15 16 17 |
# File 'lib/twitter/configuration.rb', line 12 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 |