Class: EndecaOnDemand::Response::AppliedFilters::SearchReport::Search
- Inherits:
-
Proxy
- Object
- Proxy
- EndecaOnDemand::Response::AppliedFilters::SearchReport::Search
- Includes:
- PP
- Defined in:
- lib/endeca_on_demand/response/applied_filters/search_report/search.rb
Instance Attribute Summary collapse
-
#search_report ⇒ Object
readonly
fields ##.
Attributes inherited from Proxy
Instance Method Summary collapse
-
#class ⇒ Object
override proxy ##.
-
#initialize(search_report, xml) ⇒ Search
constructor
A new instance of Search.
- #inspect_attributes ⇒ Object
-
#options ⇒ Object
data ##.
Methods included from PP
Methods inherited from Proxy
Constructor Details
#initialize(search_report, xml) ⇒ Search
Returns a new instance of Search.
15 16 17 18 19 |
# File 'lib/endeca_on_demand/response/applied_filters/search_report/search.rb', line 15 def initialize(search_report, xml) @search_report, @xml = search_report, xml define_getters(:options) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class EndecaOnDemand::Proxy
Instance Attribute Details
#search_report ⇒ Object (readonly)
fields ##
13 14 15 |
# File 'lib/endeca_on_demand/response/applied_filters/search_report/search.rb', line 13 def search_report @search_report end |
Instance Method Details
#class ⇒ Object
override proxy ##
23 24 25 |
# File 'lib/endeca_on_demand/response/applied_filters/search_report/search.rb', line 23 def class EndecaOnDemand::Response::AppliedFilters::SearchReport::Search end |
#inspect_attributes ⇒ Object
9 |
# File 'lib/endeca_on_demand/response/applied_filters/search_report/search.rb', line 9 def inspect_attributes; [ :options ]; end |
#options ⇒ Object
data ##
31 32 33 34 35 36 37 |
# File 'lib/endeca_on_demand/response/applied_filters/search_report/search.rb', line 31 def @options ||= xml.children.inject({}) do |hash,child| hash.tap do hash[child.name] = child.content end end.symbolize_keys end |