Class: Stratagem::Configuration::Core

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCore

Returns a new instance of Core.



7
8
9
10
11
# File 'lib/stratagem/configuration/core.rb', line 7

def initialize
  @use_automatic_mocking = false
  @use_transactional_crawling = true
  @credentials = []
end

Instance Attribute Details

#credentialsObject (readonly)

Returns the value of attribute credentials.



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

def credentials
  @credentials
end

#use_automatic_mockingObject

Returns the value of attribute use_automatic_mocking.



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

def use_automatic_mocking
  @use_automatic_mocking
end

#use_transactional_crawlingObject

Returns the value of attribute use_transactional_crawling.



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

def use_transactional_crawling
  @use_transactional_crawling
end

Instance Method Details

#authenticate_with(&block) ⇒ Object



13
14
15
16
17
# File 'lib/stratagem/configuration/core.rb', line 13

def authenticate_with(&block)
  user = AuthAuth.new
  block.call(user)
  @credentials << user
end