module Rajaongkir

Constants

VERSION

Public Class Methods

new(api_key, opts = {}) click to toggle source

api_key = API Key from RajaOngkir opts = Host of RajaOngkir opts = Account Type (starter/basic/pro)

# File lib/rajaongkir.rb, line 11
def new(api_key, opts = {})
  Rajaongkir::API.new(api_key, default_options.merge(opts))
end

Private Class Methods

default_options() click to toggle source
# File lib/rajaongkir.rb, line 17
def default_options
  {
    host: 'https://api.rajaongkir.com',
    type: 'starter',
    timeout: 5,
    open_timeout: 5
  }
end