Sha256: 3ce67553d1cfec791317c010b2fadcd97069df65699d447438ce8a56fb906bb3
Contents?: true
Size: 638 Bytes
Versions: 49
Compression:
Stored size: 638 Bytes
Contents
module PortaText module Command module Api # The tariffs endpoint. # https://github.com/PortaText/docs/wiki/REST-API#api_tariffs # # Author:: Marcelo Gornstein (mailto:marcelog@portatext.com) # Copyright:: Copyright (c) 2015 PortaText # License:: Apache-2.0 class Tariffs < Base def for_country(country_iso) set :country, country_iso end def endpoint(_method) return 'tariffs' if @args[:country].nil? country = @args[:country] @args.delete :country "tariffs/#{country}" end end end end end
Version data entries
49 entries across 49 versions & 1 rubygems