Class: Poliqarp::Config
- Inherits:
-
Object
- Object
- Poliqarp::Config
- Defined in:
- lib/poliqarpr/config.rb
Overview
- Author
-
Aleksander Pohl ([email protected])
- License
-
MIT License
This class holds the configuration of the client.
Constant Summary collapse
- GROUPS =
[:left_context, :left_match, :right_match, :right_context]
Instance Attribute Summary collapse
-
#buffer_size ⇒ Object
The size of the buffer is the maximum number of excerpts which are returned for single query.
-
#left_context_size ⇒ Object
Returns the value of attribute left_context_size.
-
#lemmata ⇒ Object
Returns the value of attribute lemmata.
-
#right_context_size ⇒ Object
Returns the value of attribute right_context_size.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(client, buffer_size) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(client, buffer_size) ⇒ Config
Returns a new instance of Config.
14 15 16 17 |
# File 'lib/poliqarpr/config.rb', line 14 def initialize(client,buffer_size) @client = client @buffer_size = buffer_size end |
Instance Attribute Details
#buffer_size ⇒ Object
The size of the buffer is the maximum number of excerpts which are returned for single query.
11 12 13 |
# File 'lib/poliqarpr/config.rb', line 11 def buffer_size @buffer_size end |
#left_context_size ⇒ Object
Returns the value of attribute left_context_size.
12 13 14 |
# File 'lib/poliqarpr/config.rb', line 12 def left_context_size @left_context_size end |
#lemmata ⇒ Object
Returns the value of attribute lemmata.
12 13 14 |
# File 'lib/poliqarpr/config.rb', line 12 def lemmata @lemmata end |
#right_context_size ⇒ Object
Returns the value of attribute right_context_size.
12 13 14 |
# File 'lib/poliqarpr/config.rb', line 12 def right_context_size @right_context_size end |
#tags ⇒ Object
Returns the value of attribute tags.
12 13 14 |
# File 'lib/poliqarpr/config.rb', line 12 def end |