Class: Teams::Api::QuotedReplyEntity
- Inherits:
-
Model
- Object
- Model
- Teams::Api::QuotedReplyEntity
show all
- Defined in:
- lib/teams/api/quoted_reply_entity.rb
Instance Attribute Summary
Attributes inherited from Model
#raw
Instance Method Summary
collapse
Methods inherited from Model
#initialize
Instance Method Details
#quoted_reply ⇒ Object
52
53
54
55
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 52
def quoted_reply
value = read("quotedReply", "quoted_reply")
value.is_a?(QuotedReplyData) ? value : QuotedReplyData.new(value || {})
end
|
#to_h ⇒ Object
57
58
59
60
61
62
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 57
def to_h
{
"type" => type,
"quotedReply" => quoted_reply.to_h
}
end
|
#type ⇒ Object
48
49
50
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 48
def type
"quotedReply"
end
|