Sha256: a1f2a4cc18816deeef354415bd79c5202758bb0a8d8bfee1f1cc33b16cb6e57a
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
module PortaText module Command module Api # The recharge endpoint. # https://github.com/PortaText/docs/wiki/REST-API#api_recharge # # Author:: Marcelo Gornstein (mailto:marcelog@portatext.com) # Copyright:: Copyright (c) 2015 PortaText # License:: Apache-2.0 class Recharge < Base def with_card(card_id) set :card_id, card_id end def total(plan_id, total) set :plan_id, plan_id set :total, total end def endpoint(_method) 'recharge' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
portatext-1.0.0 | lib/portatext/command/api/recharge.rb |
portatext-1.0.0.pre | lib/portatext/command/api/recharge.rb |