Class: Vendor

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/vendor.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) count_test_plans



10
11
12
# File 'app/models/vendor.rb', line 10

def count_test_plans
  test_plans.count
end

- (Boolean) editable_by?(vendor_user)



18
19
20
# File 'app/models/vendor.rb', line 18

def editable_by?(vendor_user)
  user == vendor_user
end

- (Object) to_s



14
15
16
# File 'app/models/vendor.rb', line 14

def to_s
  public_id
end