Class: Pipl::Client::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/pipl/client/name.rb

Instance Method Summary collapse

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

#responseObject



8
9
10
# File 'lib/pipl/client/name.rb', line 8

def response
  @response ||= API::Response.new(@request.call)
end