Class: Calendlyr::UsersResource

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(uuid: "me")
end

#retrieve(uuid:) ⇒ Object



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

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