Sha256: 336e05059fa1bc081da7e15d59525d95605860605a459ec4d71fa60380a0e3a4

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

# encoding: utf-8

module Validic
  module Profile

    ##
    # Get Profile base on `access_token`
    #
    # @params :access_token - override for default access_token
    # @return [Hashie::Mash] with list of Profile
    def get_profile(options={})
      options = {
        access_token: options[:access_token]
      }
      response = get("/#{Validic.api_version}/profile.json", options)
      response if response
    end

    ##
    # Update Profile base on `access_token`
    # 
    # @return success
    # def update_profile(options={})
    #   options = {
    #     profile: {
    #       gender: options[:gender],
    #       location: options[:location],
    #       birth_year: options[:birth_year],
    #       height: options[:height],
    #       weight: options[:weight],
    #       first_name: options[:first_name],
    #       last_name: options[:last_name]
    #     }
    #   }

    #   response = post("/#{Validic.api_version}/profile.json", options)
    #   response if response
    # end

  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
validic-0.3.3 lib/validic/profile.rb
validic-0.3.2 lib/validic/profile.rb
validic-0.3.1 lib/validic/profile.rb
validic-0.2.1 lib/validic/profile.rb