class HaveAPI::Fs::Components::IndexFilterValue

Public Class Methods

new(resource, filters) click to toggle source
Calls superclass method
# File lib/haveapi/fs/components/index_filter.rb, line 35
def initialize(resource, filters)
  super(resource)

  @filters = filters
end

Public Instance Methods

setup() click to toggle source
Calls superclass method
# File lib/haveapi/fs/components/index_filter.rb, line 41
def setup
  super

  @filters.each do |k, v|
    @index.find(:input).find(k).write(v)
    @last = v
  end
end
title() click to toggle source
# File lib/haveapi/fs/components/index_filter.rb, line 50
def title
  @last.to_s
end

Protected Instance Methods

new_child(name) click to toggle source
Calls superclass method
# File lib/haveapi/fs/components/index_filter.rb, line 55
def new_child(name)
  child = super(name)
  return child unless child

  child << @filters.clone if [child].flatten.first == IndexFilter
  child
end