Class: AppStoreDevApi::Client::Options
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- AppStoreDevApi::Client::Options
- Defined in:
- lib/app_store_dev_api/client/options.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#kwargs ⇒ Object
readonly
Returns the value of attribute kwargs.
Instance Method Summary collapse
-
#initialize(kwargs = {}) ⇒ Options
constructor
A new instance of Options.
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 = DEFAULTS.merge(@env.merge(@config.merge(kwargs))) super() end |
Instance Attribute Details
#config ⇒ Object (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 |
#env ⇒ Object (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 |
#kwargs ⇒ Object (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 |