Class: Hyperlinked::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hyperlinked/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cache_storeObject

Returns the value of attribute cache_store.



11
12
13
# File 'lib/hyperlinked/configuration.rb', line 11

def cache_store
  @cache_store
end

#client_idObject

Returns the value of attribute client_id.



11
12
13
# File 'lib/hyperlinked/configuration.rb', line 11

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



11
12
13
# File 'lib/hyperlinked/configuration.rb', line 11

def client_secret
  @client_secret
end

#loggingObject

Returns the value of attribute logging.



10
11
12
# File 'lib/hyperlinked/configuration.rb', line 10

def logging
  @logging
end

#user_agentObject

Returns the value of attribute user_agent.



11
12
13
# File 'lib/hyperlinked/configuration.rb', line 11

def user_agent
  @user_agent
end

Instance Method Details

#api_rootObject



47
48
49
# File 'lib/hyperlinked/configuration.rb', line 47

def api_root
  @api_root
end

#api_root=(v) ⇒ Object



34
35
36
37
# File 'lib/hyperlinked/configuration.rb', line 34

def api_root=(v)
  check_url! :api_root, v
  set_non_nil :api_root, v
end

#auth_hostObject



43
44
45
# File 'lib/hyperlinked/configuration.rb', line 43

def auth_host
  @auth_host
end

#auth_host=(v) ⇒ Object



29
30
31
32
# File 'lib/hyperlinked/configuration.rb', line 29

def auth_host=(v)
  check_url! :auth_host, v
  set_non_nil :auth_host, v
end

#loggerObject



51
52
53
# File 'lib/hyperlinked/configuration.rb', line 51

def logger
  @logger || ::Logger.new(STDOUT)
end

#logger=(v) ⇒ Object



39
40
41
# File 'lib/hyperlinked/configuration.rb', line 39

def logger=(v)
  set_non_nil :logger, v
end

#response_handlersObject



55
56
57
58
59
60
# File 'lib/hyperlinked/configuration.rb', line 55

def response_handlers
  @response_handlers ||= ResponseHandlers::Set.new([
    ResponseHandlers::Hal,
    ResponseHandlers::File
  ])
end