Class: ClientData::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  default!
end

Instance Attribute Details

#builder_namespaceObject

Returns the value of attribute builder_namespace.



3
4
5
# File 'lib/client_data/configuration.rb', line 3

def builder_namespace
  @builder_namespace
end

#builder_rootObject

Returns the value of attribute builder_root.



3
4
5
# File 'lib/client_data/configuration.rb', line 3

def builder_root
  @builder_root
end

#providerObject

Returns the value of attribute provider.



3
4
5
# File 'lib/client_data/configuration.rb', line 3

def provider
  @provider
end

Instance Method Details

#default!Object



9
10
11
12
13
# File 'lib/client_data/configuration.rb', line 9

def default!
  self.builder_root = nil
  self.builder_namespace = ''
  self.provider = :gon if defined?(Gon)
end