Method: AboutYou::SDK::Model::Facet#option
- Defined in:
- lib/AboutYou/Model/facet.rb
#option(key) ⇒ Object
Getter for options
-
Args :
-
key-> The key for which options should be returned
-
-
Returns :
-
either null if no options are set or a String containing an option
-
146 147 148 149 150 151 |
# File 'lib/AboutYou/Model/facet.rb', line 146 def option(key) return unless .each do |option| return option['value'] if option['key'] == key end end |