Module: Gbizinfo::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/gbizinfo/config.rb

Constant Summary collapse

ATTRIBUTES =
%i[
  user_agent
  endpoint
  token
  adapter
].freeze

Instance Method Summary collapse

Instance Method Details

#resetObject



14
15
16
17
18
19
# File 'lib/gbizinfo/config.rb', line 14

def reset
  self.endpoint = 'https://info.gbiz.go.jp/hojin/v1/'
  self.user_agent = "gBizINFO Ruby Client/#{Gbizinfo::VERSION}"
  self.token = nil
  self.adapter = ::Faraday.default_adapter
end