Sha256: 6cb714fbbbad58b0471eaa4363928cd9c989557a7b28816faadbdeeeb0c16bc1

Contents?: true

Size: 655 Bytes

Versions: 1

Compression:

Stored size: 655 Bytes

Contents

module Highrise
  # name
  # background
  # status (pending, won, lost)
  # category-id
  # ---------------------------
  # account-id
  # author-id
  # created-at
  # currency
  # duration
  # group-id
  # owner-id
  # party-id
  # price type
  # price-type
  # responsible-party-id
  # status-changed-on
  # updated-at
  # visible-to
  class Deal < Subject
    
    class DealCategory < Base
      def self.find_by_name(name)
        find(:all).select{|category| category.name == name}.first
      end
      
      def self.delete!(name)
        category = self.find_by_name(name)
        delete(category.id) if category
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soleone-highrise-0.13.3 lib/highrise/deal.rb