Namespace
Methods
#
C
F
N
Included Modules
Attributes
[RW] gender
[R] id
[RW] karma
[RW] salary
[RW] title
Class Public methods
find(id)
# File activejob/test/models/person.rb, line 8
def self.find(id)
  raise RecordNotFound.new("Cannot find person with ID=404") if id.to_i==404
  new(id)
end
new(id)
# File activejob/test/models/person.rb, line 13
def initialize(id)
  @id = id
end
Instance Public methods
==(other_person)
# File activejob/test/models/person.rb, line 17
def ==(other_person)
  other_person.is_a?(Person) && id.to_s == other_person.id.to_s
end
condition_is_true()
# File activemodel/test/models/person.rb, line 7
def condition_is_true
  true
end