Class: Twitter::Settings
Instance Attribute Summary collapse
-
#always_use_https ⇒ Object
readonly
Returns the value of attribute always_use_https.
-
#discoverable_by_email ⇒ Object
readonly
Returns the value of attribute discoverable_by_email.
-
#geo_enabled ⇒ Object
readonly
Returns the value of attribute geo_enabled.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#protected ⇒ Object
(also: #protected?)
readonly
Returns the value of attribute protected.
-
#screen_name ⇒ Object
readonly
Returns the value of attribute screen_name.
-
#show_all_inline_media ⇒ Object
readonly
Returns the value of attribute show_all_inline_media.
-
#sleep_time ⇒ Object
readonly
Returns the value of attribute sleep_time.
-
#time_zone ⇒ Object
readonly
Returns the value of attribute time_zone.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], attr_reader, 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_https ⇒ Object (readonly)
Returns the value of attribute always_use_https.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def always_use_https @always_use_https end |
#discoverable_by_email ⇒ Object (readonly)
Returns the value of attribute discoverable_by_email.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def discoverable_by_email @discoverable_by_email end |
#geo_enabled ⇒ Object (readonly)
Returns the value of attribute geo_enabled.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def geo_enabled @geo_enabled end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def language @language end |
#protected ⇒ Object (readonly) Also known as: protected?
Returns the value of attribute protected.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def protected @protected end |
#screen_name ⇒ Object (readonly)
Returns the value of attribute screen_name.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def screen_name @screen_name end |
#show_all_inline_media ⇒ Object (readonly)
Returns the value of attribute show_all_inline_media.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def show_all_inline_media @show_all_inline_media end |
#sleep_time ⇒ Object (readonly)
Returns the value of attribute sleep_time.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def sleep_time @sleep_time end |
#time_zone ⇒ Object (readonly)
Returns the value of attribute time_zone.
6 7 8 |
# File 'lib/twitter/settings.rb', line 6 def time_zone @time_zone end |
Instance Method Details
#trend_location ⇒ Twitter::Place
12 13 14 |
# File 'lib/twitter/settings.rb', line 12 def trend_location @trend_location ||= Twitter::Place.fetch_or_new(Array(@attrs[:trend_location]).first) end |