Class: Teams::Api::QuotedReplyEntity

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

Constructor Details

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

Instance Method Details

#quoted_replyObject



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_hObject



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

#typeObject



48
49
50
# File 'lib/teams/api/quoted_reply_entity.rb', line 48

def type
  "quotedReply"
end