Sha256: a6d00de2d33bcb44d9880834093b36a6e2e18df7f80555737dbf3f53455a2808
Contents?: true
Size: 673 Bytes
Versions: 5
Compression:
Stored size: 673 Bytes
Contents
module EndecaOnDemand class Response class Property < EndecaOnDemand::Proxy include EndecaOnDemand::PP def inspect_attributes; [ :label, :value ]; end def inspect; "#{label}: #{value.inspect}"; end ## fields ## attr_reader :parent def initialize(parent, xml) @parent, @xml = parent, xml end ## override proxy ## def class EndecaOnDemand::Response::Property end ## ## data ## def label xml.name.to_s.gsub(/^p_/, '') end def value xml.content end alias :to_s :value alias :to_param :value ## end end end
Version data entries
5 entries across 5 versions & 1 rubygems