class PortaText::Command::Api::Tariffs
The tariffs endpoint. github.com/PortaText/docs/wiki/REST-API#api_tariffs
- Author
-
Marcelo Gornstein (marcelog@portatext.com)
- Copyright
-
Copyright © 2015
PortaText
- License
-
Apache-2.0
Public Instance Methods
endpoint(_method)
click to toggle source
# File lib/portatext/command/api/tariffs.rb, line 15 def endpoint(_method) return 'tariffs' if @args[:country].nil? country = @args[:country] @args.delete :country "tariffs/#{country}" end
for_country(country_iso)
click to toggle source
# File lib/portatext/command/api/tariffs.rb, line 11 def for_country(country_iso) set :country, country_iso end