Class: DataScienceTheater3000::Text2People
- Inherits:
-
Object
- Object
- DataScienceTheater3000::Text2People
- Defined in:
- lib/data_science_theater_3000/text2people.rb
Instance Attribute Summary collapse
- #name ⇒ Object private
Instance Method Summary collapse
-
#initialize(name) ⇒ Text2People
constructor
Specify a name or names and return parsed result as well as a best-guess for gender.
-
#result ⇒ Hash
Information related to the provided name(s).
Constructor Details
#initialize(name) ⇒ Text2People
Specify a name or names and return parsed result as well as a best-guess for gender
11 12 13 |
# File 'lib/data_science_theater_3000/text2people.rb', line 11 def initialize name @name = ActiveSupport::JSON.encode(name) end |
Instance Attribute Details
#name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/data_science_theater_3000/text2people.rb', line 5 def name @name end |
Instance Method Details
#result ⇒ Hash
Returns information related to the provided name(s).
17 18 19 |
# File 'lib/data_science_theater_3000/text2people.rb', line 17 def result dst_request.result end |