Sha256: 5a5a0df07506f796d82286b741ef6bc2a112602956feb84fe345f0190db26b13

Contents?: true

Size: 483 Bytes

Versions: 6

Compression:

Stored size: 483 Bytes

Contents

module Billimatic
  module Resources
    class Contract < Base
      crud :create, :update, :destroy

      def search(name:)
        http.get(
          "#{resource_base_path}/search", params: { name: name }
        ) { |response| respond_with_collection response }
      end

      def list(organization_id:)
        list_by_organization(organization_id)
      end

      def show(id, organization_id:)
        show_by_organization(organization_id, id)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
billimatic-client-1.0.1 lib/billimatic/resources/contract.rb
billimatic-client-1.0.0 lib/billimatic/resources/contract.rb
billimatic-client-0.22.1 lib/billimatic/resources/contract.rb
billimatic-client-0.22.0 lib/billimatic/resources/contract.rb
billimatic-client-0.21.0 lib/billimatic/resources/contract.rb
billimatic-client-0.20.0 lib/billimatic/resources/contract.rb