Class: GooglePlus::Configuration

Inherits:
Base
  • Object
show all
Defined in:
lib/google_plus/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 GooglePlus::Base

Instance Method Details

#photo_sizesArray<GooglePlus::Size>

Returns an array of photo sizes

Returns:



13
14
15
16
17
# File 'lib/google_plus/configuration.rb', line 13

def photo_sizes
  @photo_sizes ||= Array(@attrs['photo_sizes']).each_with_object({}) do |(key, value), object|
    object[key] = GooglePlus::Size.new(value)
  end
end