Class: Pipl::Client::Name
- Inherits:
-
Object
- Object
- Pipl::Client::Name
- Defined in:
- lib/pipl/client/name.rb
Instance Method Summary collapse
-
#initialize(client, name) ⇒ Name
constructor
A new instance of Name.
- #response ⇒ Object
Constructor Details
#initialize(client, name) ⇒ Name
Returns a new instance of Name.
4 5 6 |
# File 'lib/pipl/client/name.rb', line 4 def initialize(client, name) @request = API::Request::Name.new(name, key: client.key) end |
Instance Method Details
#response ⇒ Object
8 9 10 |
# File 'lib/pipl/client/name.rb', line 8 def response @response ||= API::Response.new(@request.call) end |