Sha256: 8cf073157233ff97dee736bf511fecf2f5dd8d87832f840edae30ede9ff6f453
Contents?: true
Size: 709 Bytes
Versions: 3
Compression:
Stored size: 709 Bytes
Contents
module EndecaOnDemand class Response class KeywordRedirect < EndecaOnDemand::Proxy include EndecaOnDemand::PP def inspect_attributes; [ :options ]; end ## fields ## attr_reader :response def initialize(response, xml) @response, @xml = response, xml define_getters(:options) end ## override proxy ## def class EndecaOnDemand::Response::KeywordRedirect end ## ## data ## def options @options ||= xml.children.inject({}) do |hash,child| hash.tap do hash[child.name] = child.content end end.symbolize_keys end ## end end end
Version data entries
3 entries across 3 versions & 1 rubygems