Class: Cobrato::Resources::RegressCnab
- Defined in:
- lib/cobrato/resources/regress_cnab.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#collection_name, crud, #destroy, #initialize, #list, #parsed_body, #show, #update
Methods included from Hooks
Constructor Details
This class inherits a constructor from Cobrato::Resources::Base
Instance Method Details
#create(params) ⇒ Object
8 9 10 11 |
# File 'lib/cobrato/resources/regress_cnab.rb', line 8 def create(params) deprecate(params, %w[charge_config_id]) super end |
#file(id) ⇒ Object
13 14 15 16 17 |
# File 'lib/cobrato/resources/regress_cnab.rb', line 13 def file(id) http.get("#{resource_base_path}/#{id}/file") do |response| respond_with_openstruct(response) end end |