Class: Twitter::Settings

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/settings.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

#trend_locationTwitter::Place

Returns:



12
13
14
# File 'lib/twitter/settings.rb', line 12

def trend_location
  @trend_location ||= Twitter::Place.new(@attrs['trend_location'].first) unless @attrs['trend_location'].nil? || @attrs['trend_location'].empty?
end