Module: Slideshare

Extended by:
Configuration
Defined in:
lib/slideshare.rb,
lib/slideshare/api.rb,
lib/slideshare/error.rb,
lib/slideshare/client.rb,
lib/slideshare/request.rb,
lib/slideshare/version.rb,
lib/slideshare/connection.rb,
lib/slideshare/configuration.rb,
lib/slideshare/authentication.rb

Defined Under Namespace

Modules: Api, Authentication, Configuration, Connection, Request Classes: BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, ServiceUnavailable, SlideshareError, Unauthorized

Constant Summary collapse

VERSION =

The version of the gem

'0.1.2'

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_ENDPOINT, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_API_SECRET, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_USER_AGENT, Configuration::DEFAULT_VERSION, Configuration::VALID_FROMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Slideshare::Client

Alias for Slideshare::Client.new

Returns:



13
14
15
# File 'lib/slideshare.rb', line 13

def self.client(options={})
  Slideshare::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to Slideshare::Client



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

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method) ⇒ Boolean

Delegate to Slideshare::Client

Returns:

  • (Boolean)


24
25
26
# File 'lib/slideshare.rb', line 24

def self.respond_to?(method)
  return client.respond_to?(method) || super
end