Class: TokyoApi::Identity

Inherits:
Base
  • Object
show all
Defined in:
lib/tokyo_api/identity.rb

Instance Method Summary collapse

Methods inherited from Base

#normalized_base_path

Instance Method Details

#base_pathObject



3
4
5
# File 'lib/tokyo_api/identity.rb', line 3

def base_path
  'identity'
end

#full_user(id) ⇒ Object



7
8
9
# File 'lib/tokyo_api/identity.rb', line 7

def full_user(id)
  client.get_request("#{normalized_base_path}full_user/#{id}").body
end

#tokyo_identity_user_path(id, phone_required) ⇒ Object



11
12
13
# File 'lib/tokyo_api/identity.rb', line 11

def tokyo_identity_user_path(id, phone_required)
  "/#{normalized_base_path}user/#{id}?phone_required=#{phone_required}"
end