Class: Ankit::Challenge::Slot

Inherits:
Struct
  • Object
show all
Defined in:
lib/ankit/challenge.rb

Constant Summary collapse

BATCH_SIZE =
10

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



99
100
101
# File 'lib/ankit/challenge.rb', line 99

def event
  @event
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



99
100
101
# File 'lib/ankit/challenge.rb', line 99

def path
  @path
end

#ratingObject

Returns the value of attribute rating

Returns:

  • (Object)

    the current value of rating



99
100
101
# File 'lib/ankit/challenge.rb', line 99

def rating
  @rating
end

Instance Method Details

#maturityObject



101
# File 'lib/ankit/challenge.rb', line 101

def maturity; self.event ? self.event.maturity : 0; end