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
-
#initialize ⇒ Tuling
constructor
A new instance of Tuling.
- #input(content, userid) ⇒ Object
Constructor Details
Class Method Details
.api ⇒ Object
26 27 28 |
# File 'lib/tuling.rb', line 26 def self.api return "#{ENV['tuling123']}" end |
Instance Method Details
#input(content, userid) ⇒ Object
30 31 32 33 |
# File 'lib/tuling.rb', line 30 def input(content, userid) parsed_response = get_response(full_url(content,userid)) return parsed_response end |