Class: AppStoreDevApi::Client::Options

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/app_store_dev_api/client/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kwargs = {}) ⇒ Options

Returns a new instance of Options.



19
20
21
22
23
24
25
26
27
# File 'lib/app_store_dev_api/client/options.rb', line 19

def initialize(kwargs = {})
  @kwargs = kwargs
  @config = build_config
  @env = build_env

  options = DEFAULTS.merge(@env.merge(@config.merge(kwargs)))

  super(options)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/app_store_dev_api/client/options.rb', line 8

def config
  @config
end

#envObject (readonly)

Returns the value of attribute env.



8
9
10
# File 'lib/app_store_dev_api/client/options.rb', line 8

def env
  @env
end

#kwargsObject (readonly)

Returns the value of attribute kwargs.



8
9
10
# File 'lib/app_store_dev_api/client/options.rb', line 8

def kwargs
  @kwargs
end