Class: Generator::Zeta

Inherits:
Object
  • Object
show all
Defined in:
bin/finexclub_updater

Instance Method Summary collapse

Instance Method Details

#generate(options = {}) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
# File 'bin/finexclub_updater', line 57

def generate(options = {})
  symbol = options[:symbol] || raise("--symbol option is missing")
  timeframe = options[:timeframe] || raise("--tf option is missing")
  data = []
  data << ["zeta[][symbol]", symbol.upcase]
  data << ["zeta[][timeframe]", timeframe]
  data << ["zeta[][up_support]", Generator.rand_price]
  data << ["zeta[][up_resist]", Generator.rand_price]
  data << ["zeta[][down_support]", Generator.rand_price]
  data << ["zeta[][down_resist]", Generator.rand_price]
  data << ["zeta[][screenshot_filename]", "#{symbol.upcase}_ZETA.gif"]
end

#nameObject



53
54
55
# File 'bin/finexclub_updater', line 53

def name
  'zeta'
end