Class: EndecaOnDemand::Response::Breadcrumb::Bread
- Includes:
- PP
- Defined in:
- lib/endeca_on_demand/response/breadcrumb/bread.rb
Instance Attribute Summary collapse
-
#breadcrumb ⇒ Object
readonly
fields ##.
Attributes inherited from Proxy
Instance Method Summary collapse
-
#class ⇒ Object
override proxy ##.
-
#initialize(breadcrumb, xml) ⇒ Bread
constructor
A new instance of Bread.
- #inspect_attributes ⇒ Object
-
#options ⇒ Object
data ##.
Methods included from PP
Methods inherited from Proxy
Constructor Details
#initialize(breadcrumb, xml) ⇒ Bread
Returns a new instance of Bread.
14 15 16 17 18 |
# File 'lib/endeca_on_demand/response/breadcrumb/bread.rb', line 14 def initialize(, xml) @breadcrumb, @xml = , 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
#breadcrumb ⇒ Object (readonly)
fields ##
12 13 14 |
# File 'lib/endeca_on_demand/response/breadcrumb/bread.rb', line 12 def @breadcrumb end |
Instance Method Details
#class ⇒ Object
override proxy ##
22 23 24 |
# File 'lib/endeca_on_demand/response/breadcrumb/bread.rb', line 22 def class EndecaOnDemand::Response::Breadcrumb::Bread end |
#inspect_attributes ⇒ Object
8 |
# File 'lib/endeca_on_demand/response/breadcrumb/bread.rb', line 8 def inspect_attributes; [ :options ]; end |
#options ⇒ Object
data ##
30 31 32 33 34 35 36 |
# File 'lib/endeca_on_demand/response/breadcrumb/bread.rb', line 30 def @options ||= xml.children.inject({}) do |hash,child| hash.tap do hash[child.name] = child.content end end.symbolize_keys end |