class Proz::PatchWiwoEntry

Attributes

options[R]
token[R]
wiwo_id[R]

Public Class Methods

new(token:, wiwo_id:, **options) click to toggle source
# File lib/proz/patch_wiwo_entry.rb, line 8
def initialize(token:, wiwo_id:, **options)
  @token = token
  @wiwo_id = wiwo_id
  @options = options
end

Public Instance Methods

patch() click to toggle source
# File lib/proz/patch_wiwo_entry.rb, line 14
def patch
  self.class.patch("/wiwo/#{wiwo_id}",
    body: options,
    headers: { 'Authorization' => "Bearer #{token}" } )
end