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_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:) ⇒ PolicyMembershipPrivacy
constructor
A new instance of PolicyMembershipPrivacy.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, user_id:, user_email:, user_phone:, user_name:, user_mfa:) ⇒ PolicyMembershipPrivacy
Returns a new instance of PolicyMembershipPrivacy.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 13 def initialize( id:, user_id:, user_email:, user_phone:, user_name:, user_mfa: ) @id = id @user_id = user_id @user_email = user_email @user_phone = user_phone @user_name = user_name @user_mfa = user_mfa 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_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
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 29 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"] ) end |
Instance Method Details
#to_map ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/appwrite/models/policy_membership_privacy.rb', line 40 def to_map { "$id": @id, "userId": @user_id, "userEmail": @user_email, "userPhone": @user_phone, "userName": @user_name, "userMFA": @user_mfa } end |