Class: SupportOps::Calendly::Users
- Defined in:
- lib/support_ops_calendly/calendly/users.rb
Overview
Defines the module Users within the module SupportOps::Calendly.
Instance Attribute Summary collapse
-
#avatar_url ⇒ String
The URL of the user’s avatar (image).
-
#created_at ⇒ String
The moment when the user’s record was created (e.g. “2020-01-02T03:04:05.678123Z”).
-
#current_organization ⇒ String
A unique reference to the user’s current organization.
-
#email ⇒ String
The user’s email address.
-
#locale ⇒ String
The user’s language preference.
-
#name ⇒ String
The user’s name (human-readable format).
-
#resource_type ⇒ String
Resource type to support polymorphic associations.
-
#scheduling_url ⇒ String
The URL of the user’s Calendly landing page (that lists all the user’s event types).
-
#slug ⇒ String
The portion of URL for the user’s scheduling page (where invitees book sessions), rendered in a human-readable format.
-
#time_notation ⇒ String
Time notation used by the user; accepts “12h” or “24h” as a value.
-
#timezone ⇒ String
The time zone to use when presenting time to the user.
-
#updated_at ⇒ String
The moment when the user’s record was last updated (e.g. “2020-01-02T03:04:05.678123Z”).
-
#uri ⇒ String
Canonical reference (unique identifier) for the user.
Class Method Summary collapse
-
.current ⇒ Object
Returns basic information about your user account.
-
.get(object) ⇒ Object
Returns information about a specified User.
-
.get!(object) ⇒ Object
Returns information about a specified User.
Instance Method Summary collapse
-
#uuid ⇒ String
Returns the UUID of a user.
Methods inherited from Base
attributes, client, #client=, configure, define_attributes, #delete!, #find, #find!, #initialize, #members, readonly_attributes, #save!, #store_original_attributes
Constructor Details
This class inherits a constructor from SupportOps::Calendly::Base
Instance Attribute Details
#avatar_url ⇒ String
The URL of the user’s avatar (image)
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def avatar_url @avatar_url end |
#created_at ⇒ String
The moment when the user’s record was created (e.g. “2020-01-02T03:04:05.678123Z”)
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def created_at @created_at end |
#current_organization ⇒ String
A unique reference to the user’s current organization
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def current_organization @current_organization end |
#email ⇒ String
The user’s email address
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def email @email end |
#locale ⇒ String
The user’s language preference
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def locale @locale end |
#name ⇒ String
The user’s name (human-readable format)
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def name @name end |
#resource_type ⇒ String
Resource type to support polymorphic associations.
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def resource_type @resource_type end |
#scheduling_url ⇒ String
The URL of the user’s Calendly landing page (that lists all the user’s event types)
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def scheduling_url @scheduling_url end |
#slug ⇒ String
The portion of URL for the user’s scheduling page (where invitees book sessions), rendered in a human-readable format
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def slug @slug end |
#time_notation ⇒ String
Time notation used by the user; accepts “12h” or “24h” as a value.
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def time_notation @time_notation end |
#timezone ⇒ String
The time zone to use when presenting time to the user
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def timezone @timezone end |
#updated_at ⇒ String
The moment when the user’s record was last updated (e.g. “2020-01-02T03:04:05.678123Z”)
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def updated_at @updated_at end |
#uri ⇒ String
Canonical reference (unique identifier) for the user
25 26 27 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 25 def uri @uri end |
Class Method Details
.current ⇒ Object
Returns basic information about your user account.
70 71 72 73 74 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 70 def self.current response = client.connection.get('users/me') body = Oj.load(response.body) Users.new(body['resource']) end |
Instance Method Details
#uuid ⇒ String
This is inherited from Base#uuid
Returns the UUID of a user
17 |
# File 'lib/support_ops_calendly/calendly/users.rb', line 17 def uuid; end |