lib/onlinesim/GetNumbers.rb in onlinesim-1.0.9 vs lib/onlinesim/GetNumbers.rb in onlinesim-1.0.10

- old
+ new

@@ -4,11 +4,15 @@ class GetNumbers < Base def price(service) return self ._get(:endpoint => 'getPrice', :params => {service:service})['price'] end - def get(service, country: 7, reject: nil, extension: false) + def get(service, country: 7, reject: {}, extension: false) return self ._get(:endpoint => 'getNum', :params => {service:service,country:country,reject:reject,extension:extension})['tzid'] + end + + def getwithnumber(service, country: 7, reject: {}, extension: false) + return self ._get(:endpoint => 'getNum', :params => {service:service,country:country,reject:reject,extension:extension, number:true}) end def state(message_to_code:1, orderby: 'ASC', msg_list:true, clean: false, repeat:false) type = 'index' if repeat \ No newline at end of file