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