Class: Referee

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/referee.rb

Class Method Summary collapse

Class Method Details

.construct(endpoint) ⇒ Object



7
8
9
10
11
12
# File 'lib/referee.rb', line 7

def self.construct(endpoint)
  referee = Referee.new
  referee.endpoint = endpoint
  referee.save
  return referee
end