Class: Twitter::Settings

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

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

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_httpsObject (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_emailObject (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_enabledObject (readonly)

Returns the value of attribute geo_enabled.



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

def geo_enabled
  @geo_enabled
end

#languageObject (readonly)

Returns the value of attribute language.



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

def language
  @language
end

#protectedObject (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_nameObject (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_mediaObject (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_timeObject (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_zoneObject (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_locationTwitter::Place

Returns:



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