Class: Teams::Api::ConversationAccount

Inherits:
Model
  • Object
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

Constructor Details

This class inherits a constructor from Teams::Api::Model

Instance Method Details

#conversation_typeObject



14
15
16
# File 'lib/teams/api/conversation_account.rb', line 14

def conversation_type
  read("conversationType", "conversation_type")
end

#idObject



6
7
8
# File 'lib/teams/api/conversation_account.rb', line 6

def id
  read("id")
end

#is_groupObject



22
23
24
# File 'lib/teams/api/conversation_account.rb', line 22

def is_group
  read("isGroup", "is_group")
end

#nameObject



18
19
20
# File 'lib/teams/api/conversation_account.rb', line 18

def name
  read("name")
end

#tenant_idObject



10
11
12
# File 'lib/teams/api/conversation_account.rb', line 10

def tenant_id
  read("tenantId", "tenant_id")
end

#to_hObject



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