Sha256: 02823a20adef0659f8e0127e4f2fb50f6c48c508964a59c42315c9c19ccf1d89
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
module Quaderno module Behavior module Retrieve def self.included(receiver) receiver.send :extend, ClassMethods end module ClassMethods def retrieve_customer(customer_id, gateway = nil) response = get "#{api_model.url}#{gateway || 'stripe'}/customers/#{customer_id}.json", basic_auth: { username: api_model.auth_token }, headers: version_header check_exception_for(response, { rate_limit: true, subdomain_or_token: true, id: true }) hash = response.parsed_response new hash end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quaderno-1.11.0 | lib/quaderno-ruby/behavior/retrieve.rb |
quaderno-1.10.0 | lib/quaderno-ruby/behavior/retrieve.rb |
quaderno-1.9.2 | lib/quaderno-ruby/behavior/retrieve.rb |