Class: RemoveBg::BaseRequestOptions
- Inherits:
-
Object
- Object
- RemoveBg::BaseRequestOptions
- Defined in:
- lib/remove_bg/base_request_options.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(raw_options = {}) ⇒ BaseRequestOptions
constructor
A new instance of BaseRequestOptions.
Constructor Details
#initialize(raw_options = {}) ⇒ BaseRequestOptions
Returns a new instance of BaseRequestOptions.
9 10 11 12 13 |
# File 'lib/remove_bg/base_request_options.rb', line 9 def initialize( = {}) = .dup @api_key = resolve_api_key(.delete(:api_key)) @data = end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/remove_bg/base_request_options.rb', line 7 def api_key @api_key end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/remove_bg/base_request_options.rb', line 7 def data @data end |