Class: Tracksale::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



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

def client
  @client
end

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

Instance Method Details

#force_dummy_client(on = true) ⇒ Object



10
11
12
13
14
# File 'lib/tracksale/configuration.rb', line 10

def force_dummy_client(on = true)
  @client = on ?
    Tracksale::DummyClient :
    Tracksale::Client
end