Class: BooticClient::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cache_storeObject

Returns the value of attribute cache_store.


14
15
16
# File 'lib/bootic_client/configuration.rb', line 14

def cache_store
  @cache_store
end

#client_idObject

Returns the value of attribute client_id.


14
15
16
# File 'lib/bootic_client/configuration.rb', line 14

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.


14
15
16
# File 'lib/bootic_client/configuration.rb', line 14

def client_secret
  @client_secret
end

#loggingObject

Returns the value of attribute logging.


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

def logging
  @logging
end

#user_agentObject

Returns the value of attribute user_agent.


14
15
16
# File 'lib/bootic_client/configuration.rb', line 14

def user_agent
  @user_agent
end

Instance Method Details

#api_rootObject


50
51
52
# File 'lib/bootic_client/configuration.rb', line 50

def api_root
  @api_root || API_ROOT
end

#api_root=(v) ⇒ Object


37
38
39
40
# File 'lib/bootic_client/configuration.rb', line 37

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

#auth_hostObject


46
47
48
# File 'lib/bootic_client/configuration.rb', line 46

def auth_host
  @auth_host || AUTH_HOST
end

#auth_host=(v) ⇒ Object


32
33
34
35
# File 'lib/bootic_client/configuration.rb', line 32

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

#loggerObject


54
55
56
# File 'lib/bootic_client/configuration.rb', line 54

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

#logger=(v) ⇒ Object


42
43
44
# File 'lib/bootic_client/configuration.rb', line 42

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

#response_handlersObject


58
59
60
61
62
63
# File 'lib/bootic_client/configuration.rb', line 58

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