Class: Optify::GetOptionsPreferences

Inherits:
Object
  • Object
show all
Defined in:
lib/optify_ruby/get_options_preferences.rb

Overview

Preferences for ‘get_options`.

Instance Method Summary collapse

Instance Method Details

#constraints=(constraints) ⇒ Object

: (Hash[untyped, untyped]? constraints) -> void

Parameters:

  • constraints (Hash)


9
10
11
# File 'lib/optify_ruby/get_options_preferences.rb', line 9

def constraints=(constraints)
  self.constraints_json = constraints&.to_json
end

#overrides=(overrides) ⇒ Object

: (Hash[untyped, untyped]? overrides) -> void

Parameters:

  • overrides (Hash)


15
16
17
# File 'lib/optify_ruby/get_options_preferences.rb', line 15

def overrides=(overrides)
  self.overrides_json = overrides&.to_json
end