Method: Tide#initialize

Defined in:
lib/tide.rb

#initialize(options = {}) ⇒ Tide

Create new tide table.



12
13
14
15
16
17
# File 'lib/tide.rb', line 12

def initialize(options = {})
  options     = { :station => 610, :timezone => 'AST', :date => Time.now }.merge(options)
  @station    = options[:station]
  @timezone   = options[:timezone]
  @date       = options[:date]
end