Class: Appwrite::Models::PolicyPasswordPersonalData
- Inherits:
-
Object
- Object
- Appwrite::Models::PolicyPasswordPersonalData
- Defined in:
- lib/appwrite/models/policy_password_personal_data.rb
Instance Attribute Summary collapse
-
#deny_list ⇒ Object
readonly
Returns the value of attribute deny_list.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, enabled:, deny_list:) ⇒ PolicyPasswordPersonalData
constructor
A new instance of PolicyPasswordPersonalData.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, enabled:, deny_list:) ⇒ PolicyPasswordPersonalData
Returns a new instance of PolicyPasswordPersonalData.
10 11 12 13 14 15 16 17 18 |
# File 'lib/appwrite/models/policy_password_personal_data.rb', line 10 def initialize( id:, enabled:, deny_list: ) @id = id @enabled = enabled @deny_list = deny_list end |
Instance Attribute Details
#deny_list ⇒ Object (readonly)
Returns the value of attribute deny_list.
8 9 10 |
# File 'lib/appwrite/models/policy_password_personal_data.rb', line 8 def deny_list @deny_list end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/appwrite/models/policy_password_personal_data.rb', line 7 def enabled @enabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/policy_password_personal_data.rb', line 6 def id @id end |
Class Method Details
.from(map:) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/appwrite/models/policy_password_personal_data.rb', line 20 def self.from(map:) map = { "$id" => "", "enabled" => false, "denyList" => [] }.merge(map) PolicyPasswordPersonalData.new( id: map["$id"], enabled: map["enabled"], deny_list: map["denyList"] ) end |
Instance Method Details
#to_map ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/appwrite/models/policy_password_personal_data.rb', line 29 def to_map { "$id": @id, "enabled": @enabled, "denyList": @deny_list } end |