Class: Calendlyr::UserResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/calendlyr/resources/users.rb

Constant Summary

Constants inherited from Resource

Resource::ERROR_CODES

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Calendlyr::Resource

Instance Method Details

#meObject



3
4
5
# File 'lib/calendlyr/resources/users.rb', line 3

def me
  retrieve(user_uuid: "me")
end

#retrieve(user_uuid:) ⇒ Object



7
8
9
# File 'lib/calendlyr/resources/users.rb', line 7

def retrieve(user_uuid:)
  User.new get_request("users/#{user_uuid}").dig("resource").merge(client: client)
end