Module: Wayback

Extended by:
Configurable
Defined in:
lib/wayback.rb,
lib/wayback/base.rb,
lib/wayback/page.rb,
lib/wayback/error.rb,
lib/wayback/client.rb,
lib/wayback/archive.rb,
lib/wayback/default.rb,
lib/wayback/factory.rb,
lib/wayback/version.rb,
lib/wayback/identity.rb,
lib/wayback/api/utils.rb,
lib/wayback/api/archive.rb,
lib/wayback/configurable.rb,
lib/wayback/identity_map.rb,
lib/wayback/error/forbidden.rb,
lib/wayback/error/not_found.rb,
lib/wayback/error/bad_gateway.rb,
lib/wayback/error/bad_request.rb,
lib/wayback/error/client_error.rb,
lib/wayback/error/decode_error.rb,
lib/wayback/error/server_error.rb,
lib/wayback/error/unauthorized.rb,
lib/wayback/error/not_acceptable.rb,
lib/wayback/response/raise_error.rb,
lib/wayback/error/gateway_timeout.rb,
lib/wayback/response/parse_memento.rb,
lib/wayback/error/already_favorited.rb,
lib/wayback/error/already_retweeted.rb,
lib/wayback/error/too_many_requests.rb,
lib/wayback/error/configuration_error.rb,
lib/wayback/error/service_unavailable.rb,
lib/wayback/error/unprocessable_entity.rb,
lib/wayback/error/internal_server_error.rb,
lib/wayback/response/parse_memento_page.rb,
lib/wayback/error/identity_map_key_error.rb

Defined Under Namespace

Modules: API, Configurable, Default, Response Classes: Archive, Base, Client, Error, Factory, Identity, IdentityMap, Page, Version

Instance Attribute Summary

Attributes included from Configurable

#connection_options, #endpoint, #endpoint_path, #identity_map, #middleware

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

configure, keys, reset!

Class Method Details

.clientWayback::Client

Delegate to a Wayback::Client

Returns:



14
15
16
17
# File 'lib/wayback.rb', line 14

def client
  @client = Wayback::Client.new(options) unless defined?(@client) && @client.hash == options.hash
  @client
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


20
# File 'lib/wayback.rb', line 20

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

Returns:

  • (Boolean)


19
# File 'lib/wayback.rb', line 19

def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end