Module: Immobilienscout24::Api::User

Included in:
Immobilienscout24::Api
Defined in:
lib/immobilienscout24/api/user.rb

Instance Method Summary collapse

Instance Method Details

#current_userObject



9
10
11
# File 'lib/immobilienscout24/api/user.rb', line 9

def current_user
  user("me")
end

#user(id) ⇒ Object



5
6
7
# File 'lib/immobilienscout24/api/user.rb', line 5

def user(id)
  get user_endpoint("/user/#{id}")
end

#user_endpoint(resource) ⇒ Object

– endpoint



15
16
17
# File 'lib/immobilienscout24/api/user.rb', line 15

def user_endpoint(resource)
  ["api/offer/#{api_version}", resource].join
end