Class: Pipl::Client

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

Defined Under Namespace

Classes: Name

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Client

Returns a new instance of Client.



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

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/pipl/client.rb', line 5

def key
  @key
end

Instance Method Details

#name(raw_name) ⇒ Object



11
12
13
# File 'lib/pipl/client.rb', line 11

def name(raw_name)
  Name.new(self, raw_name).response
end