Sha256: 105e6d138fe2c3ffa17d1fffe625a561af03d2bbfe9d7366f4f838f7a376afd6
Contents?: true
Size: 914 Bytes
Versions: 3
Compression:
Stored size: 914 Bytes
Contents
module SynapsePay class Card < APIResource attr_accessor :account_class attr_accessor :account_number_string attr_accessor :account_type attr_accessor :id attr_accessor :name_on_account attr_accessor :resource_uri attr_accessor :routing_number_string def update(params={}, headers={}) params = ParamsBuilder.merge({ :id => id, }, params) method = APIMethod.new(:post, "/card/edit", params, headers, self) json = @client.execute(method) self.refresh_from(json[:card], method, @client) end # Everything below here is used behind the scenes. APIResource.register_api_subclass(self, "card") @api_attributes = { :account_class => {}, :account_number_string => {}, :account_type => {}, :id => {}, :name_on_account => {}, :resource_uri => {}, :routing_number_string => {}, } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
synapse_pay-0.0.8 | lib/synapse_pay/resources/card.rb |
synapse_pay-0.0.7 | lib/synapse_pay/resources/card.rb |
synapse_pay-0.0.6 | lib/synapse_pay/resources/card.rb |