Sha256: be46b204b9ded7c76f61fdba8ed3fd1d6613e2aace3dd9088823f2f6e04bbf23
Contents?: true
Size: 808 Bytes
Versions: 5
Compression:
Stored size: 808 Bytes
Contents
module EndecaOnDemand class Response class Dimension class DimensionValue < EndecaOnDemand::Proxy include EndecaOnDemand::PP def inspect_attributes; [ :options ]; end ## fields ## attr_reader :dimension, :options def initialize(dimension, xml) @dimension, @xml = dimension, xml define_getters(:options) end ## override proxy ## def class EndecaOnDemand::Response::Dimension::DimensionValue 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 end
Version data entries
5 entries across 5 versions & 1 rubygems