Sha256: 8c3697f08a70e59663c3494e41038b77ae71691a26816d7256710e7406aa6541
Contents?: true
Size: 490 Bytes
Versions: 5
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true require 'codat/base_model' module Codat module Models class Integration < BaseModel ENDPOINT = '/integrations' attributes :key, :logo_url, :name, :enabled, :source_id, :integration_id, :source_type def self.all(params = {}) result = get(ENDPOINT, params) return [] unless successful_response?(result) result.body.fetch(:results, []).map { |integration| new(json: integration) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems