Class: EndecaOnDemand::Response::AppliedFilters

Inherits:
Proxy
  • Object
show all
Includes:
PP
Defined in:
lib/endeca_on_demand/response/applied_filters.rb,
lib/endeca_on_demand/response/applied_filters/search_report.rb,
lib/endeca_on_demand/response/applied_filters/search_report/search.rb,
lib/endeca_on_demand/response/applied_filters/selected_dimension_value_id.rb

Defined Under Namespace

Classes: SearchReport, SelectedDimensionValueId

Instance Attribute Summary collapse

Attributes inherited from Proxy

#xml

Instance Method Summary collapse

Methods included from PP

#inspect, #pretty_print

Methods inherited from Proxy

#inspect

Constructor Details

#initialize(response, xml) ⇒ AppliedFilters


13
14
15
# File 'lib/endeca_on_demand/response/applied_filters.rb', line 13

def initialize(response, xml)
  @response, @xml = response, xml
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EndecaOnDemand::Proxy

Instance Attribute Details

#responseObject (readonly)

fields ##


11
12
13
# File 'lib/endeca_on_demand/response/applied_filters.rb', line 11

def response
  @response
end

#search_reportsObject (readonly)

associations ##


11
12
13
# File 'lib/endeca_on_demand/response/applied_filters.rb', line 11

def search_reports
  @search_reports
end

Instance Method Details

#classObject

override proxy ##


19
20
21
# File 'lib/endeca_on_demand/response/applied_filters.rb', line 19

def class
  EndecaOnDemand::Response::AppliedFilters
end

#inspect_attributesObject


7
# File 'lib/endeca_on_demand/response/applied_filters.rb', line 7

def inspect_attributes; [ :search_reports, :selected_dimension_value_ids ]; end

#selected_dimension_value_idsObject


31
32
33
# File 'lib/endeca_on_demand/response/applied_filters.rb', line 31

def selected_dimension_value_ids
  @selected_dimension_value_ids ||= EndecaOnDemand::Collection.new(EndecaOnDemand::Response::AppliedFilters::SelectedDimensionValueId, xml.children.css('SelectedDimensionValueIds > DimensionValueId'), self)
end