Class: Appwrite::Models::PolicyMembershipPrivacy
- Inherits:
-
Object
- Object
- Appwrite::Models::PolicyMembershipPrivacy
- Defined in:
- lib/appwrite/models/policy_membership_privacy.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#user_accessed_at ⇒ Object
readonly
Returns the value of attribute user_accessed_at.
-
#user_email ⇒ Object
readonly
Returns the value of attribute user_email.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
-
#user_mfa ⇒ Object
readonly
Returns the value of attribute user_mfa.
-
#user_name ⇒ Object
readonly
Returns the value of attribute user_name.
-
#user_phone ⇒ Object
readonly
Returns the value of attribute user_phone.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, user_id:, user_email:, user_phone:, user_name:, user_mfa:, user_accessed_at:) ⇒ PolicyMembershipPrivacy
constructor
A new instance of PolicyMembershipPrivacy.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, user_id:, user_email:, user_phone:, user_name:, user_mfa:, user_accessed_at:) ⇒ PolicyMembershipPrivacy
Returns a new instance of PolicyMembershipPrivacy.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 14 def initialize( id:, user_id:, user_email:, user_phone:, user_name:, user_mfa:, user_accessed_at: ) @id = id @user_id = user_id @user_email = user_email @user_phone = user_phone @user_name = user_name @user_mfa = user_mfa @user_accessed_at = user_accessed_at end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 6 def id @id end |
#user_accessed_at ⇒ Object (readonly)
Returns the value of attribute user_accessed_at.
12 13 14 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 12 def user_accessed_at @user_accessed_at end |
#user_email ⇒ Object (readonly)
Returns the value of attribute user_email.
8 9 10 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 8 def user_email @user_email end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
7 8 9 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 7 def user_id @user_id end |
#user_mfa ⇒ Object (readonly)
Returns the value of attribute user_mfa.
11 12 13 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 11 def user_mfa @user_mfa end |
#user_name ⇒ Object (readonly)
Returns the value of attribute user_name.
10 11 12 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 10 def user_name @user_name end |
#user_phone ⇒ Object (readonly)
Returns the value of attribute user_phone.
9 10 11 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 9 def user_phone @user_phone end |
Class Method Details
.from(map:) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 32 def self.from(map:) PolicyMembershipPrivacy.new( id: map["$id"], user_id: map["userId"], user_email: map["userEmail"], user_phone: map["userPhone"], user_name: map["userName"], user_mfa: map["userMFA"], user_accessed_at: map["userAccessedAt"] ) end |
Instance Method Details
#to_map ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 44 def to_map { "$id": @id, "userId": @user_id, "userEmail": @user_email, "userPhone": @user_phone, "userName": @user_name, "userMFA": @user_mfa, "userAccessedAt": @user_accessed_at } end |