Class: Poliqarp::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_sizeObject

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_sizeObject

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

#lemmataObject

Returns the value of attribute lemmata.



12
13
14
# File 'lib/poliqarpr/config.rb', line 12

def lemmata
  @lemmata
end

#right_context_sizeObject

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

#tagsObject

Returns the value of attribute tags.



12
13
14
# File 'lib/poliqarpr/config.rb', line 12

def tags
  @tags
end