class RubyPtv::Client

Public Class Methods

new(options = {}) click to toggle source

Initialize a RubyPtv::Client instance

Both must be passed in:

options[:dev_id] = PTV developer ID
options[:secret_key] = PTV developer key
# File lib/ruby_ptv/client.rb, line 31
def initialize(options = {})
  raise ArgumentError, "Options hash required." unless options.is_a?(Hash)

  @dev_id     = options[:dev_id]
  @secret_key = options[:secret_key]
end