class DingBot::Message::FeedCard

FeedCard类型

Attributes

Public Class Methods

new(links=[]) click to toggle source
# File lib/dingbot/message/feed_card.rb, line 8
def initialize(links=[])
  @links = links
end

Public Instance Methods

body_params() click to toggle source
Calls superclass method DingBot::Message::Base#body_params
# File lib/dingbot/message/feed_card.rb, line 16
def body_params
  super.merge(feedCard: {
      links: @links.map {|link| link.format}
  })
end
msg_type() click to toggle source
# File lib/dingbot/message/feed_card.rb, line 12
def msg_type
  TYPE::FEED_CARD
end