Method: Infostrada::PersonInfo.where

Defined in:
lib/infostrada/person_info.rb

.where(options) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/infostrada/person_info.rb', line 10

def self.where(options)
  id = options.delete(:person_id)

  info = get!(URL, query: { personid: id }).first

  self.new(id, info)
end