Class: Twitter::Configuration
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#photo_sizes ⇒ Array<Twitter::Size>
Returns an array of photo sizes.
Methods inherited from Base
#[], #initialize, lazy_attr_reader
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Method Details
#photo_sizes ⇒ Array<Twitter::Size>
Returns an array of photo sizes
13 14 15 16 17 |
# File 'lib/twitter/configuration.rb', line 13 def photo_sizes @photo_sizes ||= Array(@attrs['photo_sizes']).each_with_object({}) do |(key, value), object| object[key] = Twitter::Size.new(value) end end |