Class: RemoveBg::BaseRequestOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/remove_bg/base_request_options.rb

Direct Known Subclasses

RequestOptions

Instance Attribute Summary collapse

Instance Method Summary collapse

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(raw_options = {})
  options = raw_options.dup
  @api_key = resolve_api_key(options.delete(:api_key))
  @data = options
end

Instance Attribute Details

#api_keyObject (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

#dataObject (readonly)

Returns the value of attribute data.



7
8
9
# File 'lib/remove_bg/base_request_options.rb', line 7

def data
  @data
end