Module: Croudia

Extended by:
Configurable
Defined in:
lib/croudia.rb,
lib/croudia/base.rb,
lib/croudia/user.rb,
lib/croudia/error.rb,
lib/croudia/place.rb,
lib/croudia/trend.rb,
lib/croudia/client.rb,
lib/croudia/cursor.rb,
lib/croudia/source.rb,
lib/croudia/status.rb,
lib/croudia/default.rb,
lib/croudia/version.rb,
lib/croudia/entities.rb,
lib/croudia/identity.rb,
lib/croudia/api/oauth.rb,
lib/croudia/api/users.rb,
lib/croudia/api/utils.rb,
lib/croudia/creatable.rb,
lib/croudia/api/search.rb,
lib/croudia/api/trends.rb,
lib/croudia/api/account.rb,
lib/croudia/secret_mail.rb,
lib/croudia/access_token.rb,
lib/croudia/api/statuses.rb,
lib/croudia/configurable.rb,
lib/croudia/entity/media.rb,
lib/croudia/api/favorites.rb,
lib/croudia/api/timelines.rb,
lib/croudia/trend_results.rb,
lib/croudia/search_results.rb,
lib/croudia/api/friendships.rb,
lib/croudia/search_metadata.rb,
lib/croudia/api/secret_mails.rb,
lib/croudia/request/raise_error.rb,
lib/croudia/response/parse_json.rb,
lib/croudia/response/raise_error.rb,
lib/croudia/request/multipart_with_file.rb

Defined Under Namespace

Modules: API, Configurable, Creatable, Default, Entity, Request, Response Classes: AccessToken, Base, Client, Cursor, Entities, Error, Identity, Place, Relationship, SearchMetadata, SearchResults, SecretMail, Source, Status, Trend, TrendResults, User

Constant Summary collapse

VERSION =
'1.5.1'

Instance Attribute Summary

Attributes included from Configurable

#access_token, #client_id, #client_secret, #connection_options, #endpoint, #middleware

Class Method Summary collapse

Methods included from Configurable

configure, keys, options, reset!

Class Method Details

.clientCroudia::Client

Delegate to a Croudia::Client

Returns:



12
13
14
15
16
17
# File 'lib/croudia.rb', line 12

def client
  if !@client || @client.hash != options.hash
    @client = Croudia::Client.new
  end
  @client
end

.respond_to?(*args) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/croudia.rb', line 19

def respond_to?(*args)
  super || client.respond_to?(*args)
end