lib/plaid/call.rb
# This initializes our instance variables, and sets up a new Customer class.
This initializes our instance variables, and sets up a new Customer class.
This initializes our instance variables and sets up a new Customer class .
def parse_place(response)
      @parsed_response = Hash.new
      @parsed_response[:code] = response.code
      response = JSON.parse(response)["entity"]
      @parsed_response[:category] = response["category"]
      @parsed_response[:name] = response["name"]
      @parsed_response[:id] = response["_id"]
      @parsed_response[:phone] = response["meta"]["contact"]["telephone"]
      @parsed_response[:location] = response["meta"]["location"]
      return @parsed_response
    end
def parse_place ( response ) @parsed_response = Hash . new @parsed_response [ :code ] = response . code response = JSON . parse ( response ) [ "entity" ] @parsed_response [ :category ] = response [ "category" ] @parsed_response [ :name ] = response [ "name" ] @parsed_response [ :id ] = response [ "_id" ] @parsed_response [ :phone ] = response [ "meta" ] [ "contact" ] [ "telephone" ] @parsed_response [ :location ] = response [ "meta" ] [ "location" ] return @parsed_response end
This initializes our instance variables, and sets up a new Customer class.
This initializes our instance variables and sets up a new Customer class .
response
<not_specific>