Class: Delayer::Bucket

Inherits:
Struct
  • Object
show all
Defined in:
lib/delayer/extend.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#firstObject

Returns the value of attribute first

Returns:

  • (Object)

    the current value of first



6
7
8
# File 'lib/delayer/extend.rb', line 6

def first
  @first
end

#lastObject

Returns the value of attribute last

Returns:

  • (Object)

    the current value of last



6
7
8
# File 'lib/delayer/extend.rb', line 6

def last
  @last
end

#priority_ofObject

Returns the value of attribute priority_of

Returns:

  • (Object)

    the current value of priority_of



6
7
8
# File 'lib/delayer/extend.rb', line 6

def priority_of
  @priority_of
end

#stashedObject

Returns the value of attribute stashed

Returns:

  • (Object)

    the current value of stashed



6
7
8
# File 'lib/delayer/extend.rb', line 6

def stashed
  @stashed
end

Instance Method Details

#stash_sizeObject



7
8
9
10
11
12
13
# File 'lib/delayer/extend.rb', line 7

def stash_size
  if stashed
    1 + stashed.stash_size
  else
    0
  end
end