class Proz::PostWiwoReply
Attributes
id[R]
message[R]
options[R]
token[R]
Public Class Methods
new(token:, id:, message:, **options)
click to toggle source
# File lib/proz/post_wiwo_reply.rb, line 8 def initialize(token:, id:, message:, **options) @token = token @id = id @message = { message: message } @options = options end
Public Instance Methods
post()
click to toggle source
# File lib/proz/post_wiwo_reply.rb, line 15 def post body = message.merge!(options) self.class.post("/wiwo/#{id}/replies", body: body, headers: { 'Authorization' => "Bearer #{token}" } ) end