Sha256: 7e4f016fee8ef64f870ea9c5fb5acc436c523463ff94a4486318a2c243bfccfd

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

require 'onlinesim/base'

module OnlineSim
  class GetFree < Base
    def countries
      return self ._get(:endpoint => 'getFreeCountryList')['countries']
    end

    def numbers(country: 7)
      return self ._get(:endpoint => 'getFreePhoneList', :params => {country: country})['numbers']
    end

    def messages(phone, page: 1)
      return self ._get(:endpoint => 'getFreeMessageList', :params => {phone: phone, page: page})['messages']['data']
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
onlinesim-1.0.12 lib/onlinesim/GetFree.rb
onlinesim-1.0.11 lib/onlinesim/GetFree.rb
onlinesim-1.0.10 lib/onlinesim/GetFree.rb
onlinesim-1.0.9 lib/onlinesim/GetFree.rb