Class: Nps::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Public: Initialize a new configuration for the library with the default behaviour.



9
10
11
# File 'lib/nps/configuration.rb', line 9

def initialize
  @ballot_adaptor = Nps::Ballot
end

Instance Attribute Details

#ballot_adaptorObject

Public: Retrieve or assign a ballot adaptor to store the NPS votes.



5
6
7
# File 'lib/nps/configuration.rb', line 5

def ballot_adaptor
  @ballot_adaptor
end