Module: Uphold::API::User

Included in:
Uphold::API
Defined in:
lib/uphold/api/user.rb

Instance Method Summary collapse

Instance Method Details

#meObject



4
5
6
7
8
9
10
11
# File 'lib/uphold/api/user.rb', line 4

def me
  request_data = RequestData.new(
    Endpoints::USER,
    Entities::User,
    authorization_header
  )
  Request.perform_with_object(:get, request_data)
end

#phonesObject



13
14
15
16
17
18
19
20
# File 'lib/uphold/api/user.rb', line 13

def phones
  request_data = RequestData.new(
    Endpoints::USER_PHONES,
    Entities::Phone,
    authorization_header
  )
  Request.perform_with_objects(:get, request_data)
end