Method: Appwrite::Models::Topic#initialize

Defined in:
lib/appwrite/models/topic.rb

#initialize(id:, created_at:, updated_at:, name:, email_total:, sms_total:, push_total:, subscribe:) ⇒ Topic

Returns a new instance of Topic.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/appwrite/models/topic.rb', line 15

def initialize(
    id:,
    created_at:,
    updated_at:,
    name:,
    email_total:,
    sms_total:,
    push_total:,
    subscribe:
)
    @id = id
    @created_at = created_at
    @updated_at = updated_at
    @name = name
    @email_total = email_total
    @sms_total = sms_total
    @push_total = push_total
    @subscribe = subscribe
end