Sha256: b98ed7ac8c86f9f01f19db435a897bff6f6c65e340202945286492aa9937051d

Contents?: true

Size: 1008 Bytes

Versions: 11

Compression:

Stored size: 1008 Bytes

Contents

require 'onlinesim/GetFree'
require 'onlinesim/GetForward'
require 'onlinesim/GetNumbers'
require 'onlinesim/GetProxy'
require 'onlinesim/GetRent'
require 'onlinesim/GetUser'

module OnlineSim
  class Driver
    def initialize(apikey: '', lang: 'en', dev_id: str = nil)
      @apikey = apikey
      @lang = lang
      @dev_id = dev_id
    end

    def numbers
      OnlineSim::GetNumbers.new(:apikey => @apikey, :lang => @lang, :dev_id => @dev_id)
    end

    def forward
      OnlineSim::GetForward.new(:apikey => @apikey, :lang => @lang, :dev_id => @dev_id)
    end

    def free
      OnlineSim::GetFree.new(:apikey => @apikey, :lang => @lang, :dev_id => @dev_id)
    end

    def proxy
      OnlineSim::GetProxy.new(:apikey => @apikey, :lang => @lang, :dev_id => @dev_id)
    end

    def rent
      OnlineSim::GetRent.new(:apikey => @apikey, :lang => @lang, :dev_id => @dev_id)
    end

    def user
      OnlineSim::GetUser.new(:apikey => @apikey, :lang => @lang, :dev_id => @dev_id)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
onlinesim-1.0.12 lib/onlinesim.rb
onlinesim-1.0.11 lib/onlinesim.rb
onlinesim-1.0.10 lib/onlinesim.rb
onlinesim-1.0.9 lib/onlinesim.rb
onlinesim-1.0.8 lib/onlinesim.rb
onlinesim-1.0.7 lib/onlinesim.rb
onlinesim-1.0.6 lib/onlinesim.rb
onlinesim-1.0.5 lib/onlinesim.rb
onlinesim-1.0.4 lib/onlinesim.rb
onlinesim-1.0.2 lib/onlinesim.rb
onlinesim-1.0.0 lib/onlinesim.rb