Class: Marty::Promise::VirtualRoot

Inherits:
Object
  • Object
show all
Defined in:
app/models/marty/promise.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



43
44
45
# File 'app/models/marty/promise.rb', line 43

def self.primary_key
  'id'
end

Instance Method Details

#idObject



47
48
49
# File 'app/models/marty/promise.rb', line 47

def id
  'root'
end

#resultObject



56
57
58
# File 'app/models/marty/promise.rb', line 56

def result
  nil
end

#statusObject



61
62
63
# File 'app/models/marty/promise.rb', line 61

def status
  true
end

#user_idObject Also known as: job_id



51
52
53
# File 'app/models/marty/promise.rb', line 51

def user_id
  0
end