Module: Cassette

Extended by:
Cassette
Included in:
Cassette
Defined in:
lib/cassette.rb,
lib/cassette/http.rb,
lib/cassette/cache.rb,
lib/cassette/client.rb,
lib/cassette/errors.rb,
lib/cassette/rubycas.rb,
lib/cassette/version.rb,
lib/cassette/client/cache.rb,
lib/cassette/http/request.rb,
lib/cassette/authentication.rb,
lib/cassette/rubycas/helper.rb,
lib/cassette/authentication/user.rb,
lib/cassette/authentication/cache.rb,
lib/cassette/http/parsed_response.rb,
lib/cassette/http/ticket_response.rb,
lib/cassette/rubycas/user_factory.rb,
lib/cassette/authentication/filter.rb,
lib/cassette/errors/not_a_customer.rb,
lib/cassette/errors/not_an_employee.rb,
lib/cassette/authentication/authorities.rb,
lib/cassette/rubycas/routing_constraint.rb,
lib/cassette/rubycas/single_sign_out_constraint.rb,
lib/cassette/rubycas/not_single_sign_out_constraint.rb

Defined Under Namespace

Modules: Cache, Errors, Http, Rubycas Classes: Authentication, Client, Version

Constant Summary collapse

DEFAULT_TIMEOUT =
10

Instance Attribute Summary collapse

Instance Attribute Details

#configObject


34
35
36
# File 'lib/cassette.rb', line 34

def config
  @config if defined?(@config)
end

#loggerObject


24
25
26
27
28
29
30
31
32
# File 'lib/cassette.rb', line 24

def logger
  @logger ||= begin
                if defined?(::Rails) && ::Rails.logger
                  ::Rails.logger
                else
                  Logger.new('/dev/null')
                end
              end
end