lib/dingbot/message/text.rb in dingbot-0.2.1 vs lib/dingbot/message/text.rb in dingbot-0.2.2

- old
+ new

@@ -15,11 +15,11 @@ # "isAtAll": false # } # } class Text < Base attr_accessor :content, :at_mobiles, :is_at_all - + def initialize(content='', at_mobiles=[], is_at_all=false) @content = content @at_mobiles = at_mobiles @is_at_all = is_at_all end @@ -30,10 +30,10 @@ def body_params super.merge( { text: { - "content": @content + content: @content }, at: { atMobiles: @at_mobiles, isAtAll: @is_at_all } \ No newline at end of file