class Rubyfuri::Client
Public Class Methods
new(app_id)
click to toggle source
# File lib/rubyfuri/client.rb, line 3 def initialize(app_id) @app_id = app_id end
Public Instance Methods
furu(text)
click to toggle source
# File lib/rubyfuri/client.rb, line 7 def furu(text) if text.class == String sentence = text res = YahooAPI.request(@app_id, sentence) ResponseParsers::String.new(text, res.body).ruby else text.class == Array sentence = text.join res = YahooAPI.request(@app_id, sentence) ResponseParsers::Array.new(text, res.body).ruby end end