class Everyoneapi::Person

Attributes

city[RW]
latitude[RW]
longitude[RW]
name[RW]
state[RW]
street[RW]
zip[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/everyoneapi.rb, line 41
def initialize(options = {})
  unless options[:data].nil?
    @name = options[:data][:name]
    @street = options[:data][:address] 
    unless  options[:data][:location].nil?
      @city = options[:data][:location][:city]
      @state = options[:data][:location][:state]
      @zip = options[:data][:location][:zip]
      unless  options[:data][:location][:geo].nil?
        @latitude = options[:data][:location][:geo][:latitude]
        @longitude = options[:data][:location][:geo][:longitude]
      end
    end
  end
end