Sha256: 163c5cbb32293eebe606db08e59b1bb0ca55d887af29315476f10c11048e9ff9

Contents?: true

Size: 411 Bytes

Versions: 25

Compression:

Stored size: 411 Bytes

Contents

require "cobrato/resources/hooks"

module Cobrato
  module Resources
    class RegressCnab < Base
      crud :create, :show, :list, :destroy

      def create(params)
        deprecate(params, %w[charge_config_id])
        super
      end

      def file(id)
        http.get("#{resource_base_path}/#{id}/file") do |response|
          respond_with_openstruct(response)
        end
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cobrato-client-1.1.7 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.1.6 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.1.5 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.1.4 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.1.3 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.1.2 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.1.1 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.1.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.0.1 lib/cobrato/resources/regress_cnab.rb
cobrato-client-1.0.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.27.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.26.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.25.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.24.1 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.24.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.23.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.23.0.beta12 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.23.0.beta11 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.23.0.beta10 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.23.0.beta9 lib/cobrato/resources/regress_cnab.rb