Sha256: b434151001c73ddf4248555ab85a5a19f7d0835504706b0109535d86fd5de112
Contents?: true
Size: 959 Bytes
Versions: 4
Compression:
Stored size: 959 Bytes
Contents
require 'onlinesim/base' module OnlineSim class GetRent < Base def get(country: 7, days: 1, extension: false) return self._get(:endpoint => '/rent/getRentNum', :params => {country: country,days:days,extension:extension})['item'] end def state return self._get(:endpoint => '/rent/getRentState', :params => {pagination: false})['list'] end def stateone(tzid) return self._get(:endpoint => '/rent/getRentState', :params => {tzid:tzid, pagination: false})['list'][0] end def extend(tzid) return self._get(:endpoint => '/rent/extendRentState', :params => {tzid:tzid}) end def tariffs return self._get(:endpoint => '/rent/tariffsRent') end def tariffsone(country: 7) return self._get(:endpoint => '/rent/tariffsRent', :params => {country:country}) end def close(tzid) return self._get(:endpoint => '/rent/closeRentNum', :params => {tzid:tzid}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
onlinesim-1.0.12 | lib/onlinesim/GetRent.rb |
onlinesim-1.0.11 | lib/onlinesim/GetRent.rb |
onlinesim-1.0.10 | lib/onlinesim/GetRent.rb |
onlinesim-1.0.9 | lib/onlinesim/GetRent.rb |