Class: Twitter::Settings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#[], #attr_equal, attr_reader, #attrs, #attrs_equal, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Attribute Details

#always_use_httpsObject (readonly)

Returns the value of attribute always_use_https.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def always_use_https
  @always_use_https
end

#discoverable_by_emailObject (readonly)

Returns the value of attribute discoverable_by_email.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def discoverable_by_email
  @discoverable_by_email
end

#geo_enabledObject (readonly)

Returns the value of attribute geo_enabled.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def geo_enabled
  @geo_enabled
end

#languageObject (readonly)

Returns the value of attribute language.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def language
  @language
end

#protectedObject (readonly)

Returns the value of attribute protected.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def protected
  @protected
end

#screen_nameObject (readonly)

Returns the value of attribute screen_name.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def screen_name
  @screen_name
end

#show_all_inline_mediaObject (readonly)

Returns the value of attribute show_all_inline_media.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def show_all_inline_media
  @show_all_inline_media
end

#sleep_timeObject (readonly)

Returns the value of attribute sleep_time.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def sleep_time
  @sleep_time
end

#time_zoneObject (readonly)

Returns the value of attribute time_zone.



5
6
7
# File 'lib/twitter/settings.rb', line 5

def time_zone
  @time_zone
end

Instance Method Details

#trend_locationTwitter::Place

Returns:



10
11
12
# File 'lib/twitter/settings.rb', line 10

def trend_location
  @trend_location ||= Twitter::Place.fetch_or_new(Array(@attrs[:trend_location]).first)
end