Method: Invoiced::Estimate#void

Defined in:
lib/invoiced/estimate.rb

#voidObject



47
48
49
50
51
52
53
# File 'lib/invoiced/estimate.rb', line 47

def void()
    response = @client.request(:post, "#{self.endpoint()}/void", {})

    refresh_from(response[:body].dup.merge({:id => self.id}))

    return response[:code] == 200
end