Class: Tuling
- Inherits:
-
Object
- Object
- Tuling
- Defined in:
- lib/tuling.rb
Constant Summary collapse
- TULING_URL =
"http://www.tuling123.com/openapi/api"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.api ⇒ Object
18 19 20 |
# File 'lib/tuling.rb', line 18 def self.api return "#{ENV['tuling123']}" end |
Instance Method Details
#input(content, userid) ⇒ Object
22 23 24 25 |
# File 'lib/tuling.rb', line 22 def input(content, userid) parsed_response = get_response(full_url(content,userid)) return parsed_response end |