Module: Eclair::Provider
- Extended by:
- Provider
- Included in:
- EC2Provider, GCEProvider, K8sProvider, Provider
- Defined in:
- lib/eclair/provider.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
Instance Method Summary collapse
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items.
5 6 7 |
# File 'lib/eclair/provider.rb', line 5 def items @items end |
Instance Method Details
#filter_items(search_buffer) ⇒ Object
7 8 9 |
# File 'lib/eclair/provider.rb', line 7 def filter_items search_buffer @items.select{ |item| item&.search_key&.include?(search_buffer.downcase) || item.selected } end |
#require_prepare ⇒ Object
11 12 13 |
# File 'lib/eclair/provider.rb', line 11 def require_prepare raise "Not prepared" unless @prepared end |