File tree Expand file tree Collapse file tree 4 files changed +8
-18
lines changed
Expand file tree Collapse file tree 4 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ include Appwrite::Enums
66client = Client.new
77 .set_endpoint('https://cloud.appwrite.io/v1 ') # Your API Endpoint
88 .set_project('5df5acd0d48c2') # Your project ID
9- .set_session(' ') # The user session to authenticate with
9+ .set_key('919c2d18fb5d4...a2ae413da83346ad2 ') # Your secret API key
1010
1111users = Users.new(client)
1212
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ include Appwrite
55client = Client.new
66 .set_endpoint('https://cloud.appwrite.io/v1 ') # Your API Endpoint
77 .set_project('5df5acd0d48c2') # Your project ID
8- .set_session(' ') # The user session to authenticate with
8+ .set_key('919c2d18fb5d4...a2ae413da83346ad2 ') # Your secret API key
99
1010users = Users.new(client)
1111
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class Message
1616 attr_reader :delivered_total
1717 attr_reader :data
1818 attr_reader :status
19- attr_reader :description
2019
2120 def initialize (
2221 id :,
@@ -31,8 +30,7 @@ def initialize(
3130 delivery_errors : ,
3231 delivered_total :,
3332 data :,
34- status :,
35- description :
33+ status :
3634 )
3735 @id = id
3836 @created_at = created_at
@@ -47,7 +45,6 @@ def initialize(
4745 @delivered_total = delivered_total
4846 @data = data
4947 @status = status
50- @description = description
5148 end
5249
5350 def self . from ( map :)
@@ -64,8 +61,7 @@ def self.from(map:)
6461 delivery_errors : map [ "deliveryErrors" ] ,
6562 delivered_total : map [ "deliveredTotal" ] ,
6663 data : map [ "data" ] ,
67- status : map [ "status" ] ,
68- description : map [ "description" ]
64+ status : map [ "status" ]
6965 )
7066 end
7167
@@ -83,8 +79,7 @@ def to_map
8379 "deliveryErrors" : @delivery_errors ,
8480 "deliveredTotal" : @delivered_total ,
8581 "data" : @data ,
86- "status" : @status ,
87- "description" : @description
82+ "status" : @status
8883 }
8984 end
9085 end
Original file line number Diff line number Diff line change @@ -8,22 +8,19 @@ class Topic
88 attr_reader :updated_at
99 attr_reader :name
1010 attr_reader :total
11- attr_reader :description
1211
1312 def initialize (
1413 id :,
1514 created_at :,
1615 updated_at :,
1716 name :,
18- total :,
19- description :
17+ total :
2018 )
2119 @id = id
2220 @created_at = created_at
2321 @updated_at = updated_at
2422 @name = name
2523 @total = total
26- @description = description
2724 end
2825
2926 def self . from ( map :)
@@ -32,8 +29,7 @@ def self.from(map:)
3229 created_at : map [ "$createdAt" ] ,
3330 updated_at : map [ "$updatedAt" ] ,
3431 name : map [ "name" ] ,
35- total : map [ "total" ] ,
36- description : map [ "description" ]
32+ total : map [ "total" ]
3733 )
3834 end
3935
@@ -43,8 +39,7 @@ def to_map
4339 "$createdAt" : @created_at ,
4440 "$updatedAt" : @updated_at ,
4541 "name" : @name ,
46- "total" : @total ,
47- "description" : @description
42+ "total" : @total
4843 }
4944 end
5045 end
You can’t perform that action at this time.
0 commit comments