Class: EndecaOnDemand::Client

Inherits:
Object
  • Object
show all
Includes:
PP
Defined in:
lib/endeca_on_demand/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PP

#inspect, #pretty_print

Constructor Details

#initialize(api, default_options = {}) ⇒ Client



12
13
14
# File 'lib/endeca_on_demand/client.rb', line 12

def initialize(api, default_options = {})
  @api, @default_options = api, default_options.dup.recurse(&:symbolize_keys)
end

Instance Attribute Details

#apiObject (readonly)

fields ##



10
11
12
# File 'lib/endeca_on_demand/client.rb', line 10

def api
  @api
end

#default_optionsObject (readonly)

fields ##



10
11
12
# File 'lib/endeca_on_demand/client.rb', line 10

def default_options
  @default_options
end

#query(options = {}) ⇒ Object (readonly)

associations ##



10
11
12
# File 'lib/endeca_on_demand/client.rb', line 10

def query
  @query
end

Instance Method Details

#inspect_attributesObject



6
# File 'lib/endeca_on_demand/client.rb', line 6

def inspect_attributes; [ :api, :default_options ]; end