appwrite 7.1.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,82 +0,0 @@
1
- #frozen_string_literal: true
2
-
3
- module Appwrite
4
- module Models
5
- class Account
6
- attr_reader :id
7
- attr_reader :created_at
8
- attr_reader :updated_at
9
- attr_reader :name
10
- attr_reader :registration
11
- attr_reader :status
12
- attr_reader :password_update
13
- attr_reader :email
14
- attr_reader :phone
15
- attr_reader :email_verification
16
- attr_reader :phone_verification
17
- attr_reader :prefs
18
-
19
- def initialize(
20
- id:,
21
- created_at:,
22
- updated_at:,
23
- name:,
24
- registration:,
25
- status:,
26
- password_update:,
27
- email:,
28
- phone:,
29
- email_verification:,
30
- phone_verification:,
31
- prefs:
32
- )
33
- @id = id
34
- @created_at = created_at
35
- @updated_at = updated_at
36
- @name = name
37
- @registration = registration
38
- @status = status
39
- @password_update = password_update
40
- @email = email
41
- @phone = phone
42
- @email_verification = email_verification
43
- @phone_verification = phone_verification
44
- @prefs = prefs
45
- end
46
-
47
- def self.from(map:)
48
- Account.new(
49
- id: map["$id"],
50
- created_at: map["$createdAt"],
51
- updated_at: map["$updatedAt"],
52
- name: map["name"],
53
- registration: map["registration"],
54
- status: map["status"],
55
- password_update: map["passwordUpdate"],
56
- email: map["email"],
57
- phone: map["phone"],
58
- email_verification: map["emailVerification"],
59
- phone_verification: map["phoneVerification"],
60
- prefs: Preferences.from(map: map["prefs"])
61
- )
62
- end
63
-
64
- def to_map
65
- {
66
- "$id": @id,
67
- "$createdAt": @created_at,
68
- "$updatedAt": @updated_at,
69
- "name": @name,
70
- "registration": @registration,
71
- "status": @status,
72
- "passwordUpdate": @password_update,
73
- "email": @email,
74
- "phone": @phone,
75
- "emailVerification": @email_verification,
76
- "phoneVerification": @phone_verification,
77
- "prefs": @prefs.to_map
78
- }
79
- end
80
- end
81
- end
82
- end