Class: EndecaOnDemand::Response::Dimension

Inherits:
Proxy
  • Object
show all
Includes:
PP
Defined in:
lib/endeca_on_demand/response/dimension.rb,
lib/endeca_on_demand/response/dimension/dimension_value.rb

Defined Under Namespace

Classes: DimensionValue

Instance Attribute Summary collapse

Attributes inherited from Proxy

#xml

Instance Method Summary collapse

Methods included from PP

#inspect, #pretty_print

Methods inherited from Proxy

#inspect

Constructor Details

#initialize(response, xml) ⇒ Dimension

Returns a new instance of Dimension.



13
14
15
16
17
# File 'lib/endeca_on_demand/response/dimension.rb', line 13

def initialize(response, xml)
  @response, @xml = response, 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

#dimension_valuesObject (readonly)

associations ##



11
12
13
# File 'lib/endeca_on_demand/response/dimension.rb', line 11

def dimension_values
  @dimension_values
end

#optionsObject (readonly)

data ##



11
12
13
# File 'lib/endeca_on_demand/response/dimension.rb', line 11

def options
  @options
end

#responseObject (readonly)

fields ##



11
12
13
# File 'lib/endeca_on_demand/response/dimension.rb', line 11

def response
  @response
end

Instance Method Details

#classObject

override proxy ##



21
22
23
# File 'lib/endeca_on_demand/response/dimension.rb', line 21

def class
  EndecaOnDemand::Response::Dimension
end

#inspect_attributesObject



7
# File 'lib/endeca_on_demand/response/dimension.rb', line 7

def inspect_attributes; [ :dimension_values, :options ]; end