Class: Bluff::Configuration::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bluff/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



6
7
8
9
10
11
# File 'lib/bluff/configuration.rb', line 6

def initialize
  # since we're faking the data but using real objects, there may be times where
  # an object fails to validate due to duplicates etc. Bluff will retry up to
  # max_attempts times before calling it quits
  @max_attempts = 10
end

Instance Attribute Details

#max_attemptsObject

Returns the value of attribute max_attempts.



4
5
6
# File 'lib/bluff/configuration.rb', line 4

def max_attempts
  @max_attempts
end