Class: Twitter::Configuration

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/configuration.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Method Details

#photo_sizesArray<Twitter::Size>

Returns an array of photo sizes

Returns:


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