Class: Bluff::Configuration::Base
- Inherits:
-
Object
- Object
- Bluff::Configuration::Base
- Defined in:
- lib/bluff/configuration.rb
Instance Attribute Summary collapse
-
#max_attempts ⇒ Object
Returns the value of attribute max_attempts.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
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_attempts ⇒ Object
Returns the value of attribute max_attempts.
4 5 6 |
# File 'lib/bluff/configuration.rb', line 4 def max_attempts @max_attempts end |