tapajos/highrise

View on GitHub
lib/highrise/deal.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Highrise
  class Deal < Subject
    include Pagination
    def update_status(status)
      raise ArgumentError, "status must be one of 'pending', 'won', or 'lost'" unless %w[pending won lost].include?(status)
      self.put(:status, :status => {:name => status})
    end
  end
end