Sha256: 2dd5f28b6933f03b71684c28b024f218b00872c1bfb6362ee1469d97dbda517b

Contents?: true

Size: 313 Bytes

Versions: 34

Compression:

Stored size: 313 Bytes

Contents

require "cobrato/resources/hooks"

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

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

    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
cobrato-client-0.6.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.5.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.4.2 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.4.1 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.4.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.4.0.rc1 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.3.0 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.3.0.rc1 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.2.11 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.2.10 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.2.9 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.2.8 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.2.7 lib/cobrato/resources/regress_cnab.rb
cobrato-client-0.2.6 lib/cobrato/resources/regress_cnab.rb