Class: EndecaOnDemand::Client
- Inherits:
-
Object
- Object
- EndecaOnDemand::Client
- Includes:
- PP
- Defined in:
- lib/endeca_on_demand/client.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
fields ##.
-
#default_options ⇒ Object
readonly
fields ##.
-
#query(options = {}) ⇒ Object
readonly
associations ##.
Instance Method Summary collapse
-
#initialize(api, default_options = {}) ⇒ Client
constructor
A new instance of Client.
- #inspect_attributes ⇒ Object
Methods included from PP
Constructor Details
#initialize(api, default_options = {}) ⇒ Client
Returns a new instance of Client.
12 13 14 |
# File 'lib/endeca_on_demand/client.rb', line 12 def initialize(api, = {}) @api, @default_options = api, .dup.recurse(&:symbolize_keys) end |
Instance Attribute Details
#api ⇒ Object (readonly)
fields ##
10 11 12 |
# File 'lib/endeca_on_demand/client.rb', line 10 def api @api end |
#default_options ⇒ Object (readonly)
fields ##
10 11 12 |
# File 'lib/endeca_on_demand/client.rb', line 10 def @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_attributes ⇒ Object
6 |
# File 'lib/endeca_on_demand/client.rb', line 6 def inspect_attributes; [ :api, :default_options ]; end |