Module: MarketBot

Defined in:
lib/market_bot.rb,
lib/market_bot/util.rb,
lib/market_bot/version.rb,
lib/market_bot/play/app.rb,
lib/market_bot/exceptions.rb,
lib/market_bot/play/chart.rb,
lib/market_bot/play/constants.rb,
lib/market_bot/play/developer.rb,
lib/market_bot/play/app/constants.rb,
lib/market_bot/play/chart/constants.rb

Defined Under Namespace

Modules: Play Classes: MarketBotError, NotFoundError, ResponseError, UnavailableError, Util

Constant Summary collapse

VERSION =
'1.0.7'

Class Method Summary collapse

Class Method Details

.connect_timeoutObject



25
26
27
# File 'lib/market_bot.rb', line 25

def self.connect_timeout
  @connect_timeout ||= 10
end

.connect_timeout=(val) ⇒ Object



29
30
31
# File 'lib/market_bot.rb', line 29

def self.connect_timeout=(val)
  @connect_timeout = val
end

.timeoutObject



17
18
19
# File 'lib/market_bot.rb', line 17

def self.timeout
  @timeout ||= 10
end

.timeout=(val) ⇒ Object



21
22
23
# File 'lib/market_bot.rb', line 21

def self.timeout=(val)
  @timeout = val
end

.user_agentObject



33
34
35
36
# File 'lib/market_bot.rb', line 33

def self.user_agent
  @user_agent ||= "MarketBot/#{MarketBot::VERSION} / " \
    "(+https://github.com/chadrem/market_bot)"
end

.user_agent=(val) ⇒ Object



38
39
40
# File 'lib/market_bot.rb', line 38

def self.user_agent=(val)
  @user_agent = val
end