Module: Twitter
- Extended by:
- Configurable
- Defined in:
- lib/twitter.rb,
lib/twitter/api.rb,
lib/twitter/geo.rb,
lib/twitter/base.rb,
lib/twitter/list.rb,
lib/twitter/size.rb,
lib/twitter/user.rb,
lib/twitter/error.rb,
lib/twitter/place.rb,
lib/twitter/trend.rb,
lib/twitter/tweet.rb,
lib/twitter/client.rb,
lib/twitter/cursor.rb,
lib/twitter/entity.rb,
lib/twitter/oembed.rb,
lib/twitter/default.rb,
lib/twitter/factory.rb,
lib/twitter/version.rb,
lib/twitter/identity.rb,
lib/twitter/language.rb,
lib/twitter/metadata.rb,
lib/twitter/settings.rb,
lib/twitter/creatable.rb,
lib/twitter/geo/point.rb,
lib/twitter/basic_user.rb,
lib/twitter/entity/url.rb,
lib/twitter/rate_limit.rb,
lib/twitter/suggestion.rb,
lib/twitter/geo/polygon.rb,
lib/twitter/geo_factory.rb,
lib/twitter/media/photo.rb,
lib/twitter/source_user.rb,
lib/twitter/target_user.rb,
lib/twitter/action/reply.rb,
lib/twitter/action/tweet.rb,
lib/twitter/configurable.rb,
lib/twitter/identity_map.rb,
lib/twitter/relationship.rb,
lib/twitter/saved_search.rb,
lib/twitter/action/follow.rb,
lib/twitter/configuration.rb,
lib/twitter/media_factory.rb,
lib/twitter/action/mention.rb,
lib/twitter/action/retweet.rb,
lib/twitter/action_factory.rb,
lib/twitter/direct_message.rb,
lib/twitter/entity/hashtag.rb,
lib/twitter/search_results.rb,
lib/twitter/action/favorite.rb,
lib/twitter/error/forbidden.rb,
lib/twitter/error/not_found.rb,
lib/twitter/error/bad_gateway.rb,
lib/twitter/error/bad_request.rb,
lib/twitter/error/client_error.rb,
lib/twitter/error/decode_error.rb,
lib/twitter/error/rate_limited.rb,
lib/twitter/error/server_error.rb,
lib/twitter/error/unauthorized.rb,
lib/twitter/entity/user_mention.rb,
lib/twitter/response/parse_json.rb,
lib/twitter/error/not_acceptable.rb,
lib/twitter/response/raise_error.rb,
lib/twitter/error/gateway_timeout.rb,
lib/twitter/action/list_member_added.rb,
lib/twitter/error/service_unavailable.rb,
lib/twitter/error/internal_server_error.rb,
lib/twitter/request/multipart_with_file.rb,
lib/twitter/error/identity_map_key_error.rb
Defined Under Namespace
Modules: API, Action, Configurable, Creatable, Default, Media, Request, Response Classes: ActionFactory, Base, BasicUser, Client, Configuration, Cursor, DirectMessage, Entity, Error, Factory, Geo, GeoFactory, Identity, IdentityMap, Language, List, MediaFactory, Metadata, OEmbed, Place, RateLimit, Relationship, SavedSearch, SearchResults, Settings, Size, SourceUser, Suggestion, TargetUser, Trend, Tweet, User, Version
Constant Summary collapse
- Status =
Tweet
Instance Attribute Summary
Attributes included from Configurable
#connection_options, #consumer_key, #consumer_secret, #endpoint, #identity_map, #middleware, #oauth_token, #oauth_token_secret
Class Method Summary collapse
-
.client ⇒ Twitter::Client
Delegate to a Twitter::Client.
Instance Method Summary collapse
- #respond_to?(method_name, include_private = false) ⇒ Boolean
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Methods included from Configurable
cache_key, configure, credentials?, keys, reset!
Class Method Details
.client ⇒ Twitter::Client
Delegate to a Twitter::Client
11 12 13 14 |
# File 'lib/twitter.rb', line 11 def client @client = Twitter::Client.new() unless defined?(@client) && @client.cache_key == .hash @client end |
Instance Method Details
#respond_to?(method_name, include_private = false) ⇒ Boolean
17 |
# File 'lib/twitter.rb', line 17 def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end |
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
16 |
# File 'lib/twitter.rb', line 16 def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end |