Class: Teams::Api::ConversationAccount
- Inherits:
-
Model
- Object
- Model
- Teams::Api::ConversationAccount
show all
- Defined in:
- lib/teams/api/conversation_account.rb
Instance Attribute Summary
Attributes inherited from Model
#raw
Instance Method Summary
collapse
Methods inherited from Model
#initialize
Instance Method Details
#conversation_type ⇒ Object
14
15
16
|
# File 'lib/teams/api/conversation_account.rb', line 14
def conversation_type
read("conversationType", "conversation_type")
end
|
#id ⇒ Object
6
7
8
|
# File 'lib/teams/api/conversation_account.rb', line 6
def id
read("id")
end
|
#is_group ⇒ Object
22
23
24
|
# File 'lib/teams/api/conversation_account.rb', line 22
def is_group
read("isGroup", "is_group")
end
|
#name ⇒ Object
18
19
20
|
# File 'lib/teams/api/conversation_account.rb', line 18
def name
read("name")
end
|
#tenant_id ⇒ Object
10
11
12
|
# File 'lib/teams/api/conversation_account.rb', line 10
def tenant_id
read("tenantId", "tenant_id")
end
|
#to_h ⇒ Object
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/teams/api/conversation_account.rb', line 26
def to_h
body = raw.dup
body["id"] = id if id
body["tenantId"] = tenant_id if tenant_id
body["conversationType"] = conversation_type if conversation_type
body["name"] = name if name
body["isGroup"] = is_group unless is_group.nil?
body.delete("tenant_id")
body.delete("conversation_type")
body.delete("is_group")
body
end
|