Class: UiObjects::ObjectSearch

Inherits:
UiObject
  • Object
show all
Defined in:
lib/question_chain/models/ui_objects/object_search.rb

Instance Attribute Summary

Attributes inherited from UiObject

#value

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UiObject

#change_value!, #enabled?, #initialize, #per_page, #visible?

Constructor Details

This class inherits a constructor from UiObject

Class Method Details

.attributes_for_apiObject



20
21
22
# File 'lib/question_chain/models/ui_objects/object_search.rb', line 20

def self.attributes_for_api
  %w(id name _type label position description rules ui_attributes prompt max_options object_name extra_info css_classes)
end

Instance Method Details

#options(filter, relatable_category_names = []) ⇒ Object



24
25
26
# File 'lib/question_chain/models/ui_objects/object_search.rb', line 24

def options(filter, relatable_category_names = [])
  @options ||= get_options(object_name, filter || "", relatable_category_names)
end