Class: LanguageLayer::BatchRequest

Inherits:
Object
  • Object
show all
Includes:
Hashable
Defined in:
lib/language_detection/batch/batch_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query = {}) ⇒ BatchRequest

Returns a new instance of BatchRequest.



11
12
13
# File 'lib/language_detection/batch/batch_request.rb', line 11

def initialize(query = {})
  self.query = query;
end

Instance Attribute Details

#queryObject

Returns the value of attribute query.



9
10
11
# File 'lib/language_detection/batch/batch_request.rb', line 9

def query
  @query
end