Class: Bueda::Client
Instance Method Summary collapse
- #categories(tags, options = {}) ⇒ Object
- #concepts(tags, options = {}) ⇒ Object
- #enriched(tags, options = {}) ⇒ Object
-
#initialize(apikey) ⇒ Client
constructor
A new instance of Client.
- #split(tags, options = {}) ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(apikey) ⇒ Client
Returns a new instance of Client.
9 10 11 |
# File 'lib/bueda/client.rb', line 9 def initialize(apikey) self.class.default_params :apikey => apikey end |
Instance Method Details
#categories(tags, options = {}) ⇒ Object
22 23 24 25 |
# File 'lib/bueda/client.rb', line 22 def categories(, ={}) .merge!(:query => {:tags => .join(',')}) self.class.get('/categories', )['result'] end |
#concepts(tags, options = {}) ⇒ Object
32 33 34 35 |
# File 'lib/bueda/client.rb', line 32 def concepts(, ={}) .merge!({:tags => }) self.class.get('/semantics', )['result'] end |
#enriched(tags, options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/bueda/client.rb', line 17 def enriched(, ={}) .merge!(:query => {:tags => .join(',')}) self.class.get('/enriched', )['result'] end |
#split(tags, options = {}) ⇒ Object
27 28 29 30 |
# File 'lib/bueda/client.rb', line 27 def split(, ={}) .merge!({:tags => }) self.class.get('/separated', )['result'] end |
#version ⇒ Object
13 14 15 |
# File 'lib/bueda/client.rb', line 13 def version() self.class.get('/version') end |