lib/sms-uslugi-api.rb in sms-uslugi-api-0.5.1 vs lib/sms-uslugi-api.rb in sms-uslugi-api-0.6.0

- old
+ new

@@ -30,9 +30,15 @@ use_alfasource: use_alfasource, discountID: discountID }) end + def get_phone_info(phone) + api_request("getPhoneInfo.php", { + phone: phone + }) + end + private def api_request(url, options = {}) url = "#{BASE_API_URL}/#{url}" options[:login] = @username