Class: Knockapi::Models::User
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::User
- Defined in:
- lib/knockapi/models/user.rb
Overview
Instance Attribute Summary collapse
-
#_typename ⇒ String
The typename of the schema.
-
#avatar ⇒ String?
A URL for the avatar of the user.
-
#created_at ⇒ Time?
The creation date of the user from your system.
-
#email ⇒ String?
The primary email address for the user.
-
#id ⇒ String
The unique identifier of the user.
-
#name ⇒ String?
Display name of the user.
-
#phone_number ⇒ String?
The (www.twilio.com/docs/glossary/what-e164) phone number of the user (required for SMS channels).
-
#timezone ⇒ String?
The timezone of the user.
-
#updated_at ⇒ Time
The timestamp when the resource was last updated.
Instance Method Summary collapse
-
#initialize(id:, _typename:, updated_at:, avatar: nil, created_at: nil, email: nil, name: nil, phone_number: nil, timezone: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see User for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, _typename:, updated_at:, avatar: nil, created_at: nil, email: nil, name: nil, phone_number: nil, timezone: nil) ⇒ Object
Some parameter documentations has been truncated, see Knockapi::Models::User for more details.
A [User](/concepts/users) represents an individual in your system who can receive notifications through Knock. Users are the most common recipients of notifications and are always referenced by your internal identifier.
|
|
# File 'lib/knockapi/models/user.rb', line 65
|
Instance Attribute Details
#_typename ⇒ String
The typename of the schema.
17 |
# File 'lib/knockapi/models/user.rb', line 17 required :_typename, String, api_name: :__typename |
#avatar ⇒ String?
A URL for the avatar of the user.
29 |
# File 'lib/knockapi/models/user.rb', line 29 optional :avatar, String, nil?: true |
#created_at ⇒ Time?
The creation date of the user from your system.
35 |
# File 'lib/knockapi/models/user.rb', line 35 optional :created_at, Time, nil?: true |
#email ⇒ String?
The primary email address for the user.
41 |
# File 'lib/knockapi/models/user.rb', line 41 optional :email, String, nil?: true |
#id ⇒ String
The unique identifier of the user.
11 |
# File 'lib/knockapi/models/user.rb', line 11 required :id, String |
#name ⇒ String?
Display name of the user.
47 |
# File 'lib/knockapi/models/user.rb', line 47 optional :name, String, nil?: true |
#phone_number ⇒ String?
The (www.twilio.com/docs/glossary/what-e164) phone number of the user (required for SMS channels).
54 |
# File 'lib/knockapi/models/user.rb', line 54 optional :phone_number, String, nil?: true |
#timezone ⇒ String?
The timezone of the user. Must be a valid [tz database time zone string](en.wikipedia.org/wiki/List_of_tz_database_time_zones). Used for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
63 |
# File 'lib/knockapi/models/user.rb', line 63 optional :timezone, String, nil?: true |
#updated_at ⇒ Time
The timestamp when the resource was last updated.
23 |
# File 'lib/knockapi/models/user.rb', line 23 required :updated_at, Time |